From 8f8ec94248e4e7293b6a25b7f13b119472d8befd Mon Sep 17 00:00:00 2001 From: Satyapriya Bai Date: Fri, 4 Apr 2025 22:21:11 +0530 Subject: [PATCH] [accessibility-2278267]:[Supporting the platform - Azure Cosmos DB - Data Explorer]: All the controls present under 'Data Explorer' page are truncated after setting the viewport to 320*256 pixel. --- src/Explorer/Sidebar.tsx | 21 ++++++++++++++++--- .../Tabs/DocumentsTabV2/DocumentsTabV2.tsx | 9 +++++++- .../DocumentsTabV2.test.tsx.snap | 2 +- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/Explorer/Sidebar.tsx b/src/Explorer/Sidebar.tsx index 01fd8a6d1..e1bb8f272 100644 --- a/src/Explorer/Sidebar.tsx +++ b/src/Explorer/Sidebar.tsx @@ -98,6 +98,16 @@ const useSidebarStyles = makeStyles({ display: "flex", }, }, + accessibleContent: { + "@media (max-width: 420px)": { + overflow: "scroll", + }, + }, + minHeight: { + "@media (max-width: 420px)": { + minHeight: "300px", + }, + }, }); interface GlobalCommandsProps { @@ -299,11 +309,16 @@ export const SidebarContainer: React.FC = ({ explorer }) => { return (
- + {/* Collections Tree - Start */} {hasSidebar && ( // When collapsed, we force the pane to 24 pixels wide and make it non-resizable. - +
{loading && ( @@ -357,7 +372,7 @@ export const SidebarContainer: React.FC = ({ explorer }) => { )} - + diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index c24ac08e8..0d1ffa001 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -143,6 +143,13 @@ export const useDocumentsTabStyles = makeStyles({ deleteProgressContent: { paddingTop: tokens.spacingVerticalL, }, + smallScreenContent: { + "@media (max-width: 420px)": { + flexWrap: "wrap", + minHeight: "max-content", + padding: "4px", + }, + }, }); export class DocumentsTabV2 extends TabsBase { @@ -2084,7 +2091,7 @@ export const DocumentsTabComponent: React.FunctionComponent
-
+
{!isPreferredApiMongoDB && SELECT * FROM c }
SELECT * FROM c