From 592ab8a365192d7735a572156b0dd50345c3c967 Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Wed, 20 Mar 2024 03:29:17 +0500 Subject: [PATCH] button with dropdown menu full width --- src/pages/workspace/categories/WorkspaceCategoriesPage.tsx | 2 +- src/pages/workspace/tags/WorkspaceTagsPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx index 74b439004020..3f929e46ab67 100644 --- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx +++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx @@ -228,7 +228,7 @@ function WorkspaceCategoriesPage({policy, policyCategories, route}: WorkspaceCat buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM} customText={translate('workspace.common.selected', {selectedNumber: selectedCategoriesArray.length})} options={options} - style={[isSmallScreenWidth && styles.w50, isSmallScreenWidth && styles.mb3]} + style={[isSmallScreenWidth && styles.flexGrow1, isSmallScreenWidth && styles.mb3]} /> ); } diff --git a/src/pages/workspace/tags/WorkspaceTagsPage.tsx b/src/pages/workspace/tags/WorkspaceTagsPage.tsx index ab3aac33d93a..126d548c2c8a 100644 --- a/src/pages/workspace/tags/WorkspaceTagsPage.tsx +++ b/src/pages/workspace/tags/WorkspaceTagsPage.tsx @@ -223,7 +223,7 @@ function WorkspaceTagsPage({policyTags, route}: WorkspaceTagsPageProps) { buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM} customText={translate('workspace.common.selected', {selectedNumber: selectedTagsArray.length})} options={options} - style={[isSmallScreenWidth && styles.w50, isSmallScreenWidth && styles.mb3]} + style={[isSmallScreenWidth && styles.flexGrow1, isSmallScreenWidth && styles.mb3]} /> ); }