From b1113f4633791dd28fbe84f6c3fa7bbeb0712664 Mon Sep 17 00:00:00 2001 From: Qxisylolo Date: Tue, 24 Dec 2024 16:07:51 +0800 Subject: [PATCH] [Workspace]Fix the UI of recent assets in the header (#8156) * resolve conflicts Signed-off-by: Qxisylolo * fix/ fix the_UI_of_recent_assets, delete comments Signed-off-by: Qxisylolo * fix/ fix the recent title size Signed-off-by: Qxisylolo * fix/the_UI_of_recent_assets, use icon button Signed-off-by: Qxisylolo * fix/the_UI_of_recent_assets, a small fix Signed-off-by: Qxisylolo * remove comment Signed-off-by: Qxisylolo * new resolve conflicts Signed-off-by: Qxisylolo * Changeset file for PR #8156 created/updated --------- Signed-off-by: Qxisylolo Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/8156.yml | 2 ++ .../public/chrome/ui/header/recent_items.tsx | 23 +++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 changelogs/fragments/8156.yml diff --git a/changelogs/fragments/8156.yml b/changelogs/fragments/8156.yml new file mode 100644 index 000000000000..c7b035ce443b --- /dev/null +++ b/changelogs/fragments/8156.yml @@ -0,0 +1,2 @@ +fix: +- Fix the UI of recent assets in the header ([#8156](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8156)) \ No newline at end of file diff --git a/src/core/public/chrome/ui/header/recent_items.tsx b/src/core/public/chrome/ui/header/recent_items.tsx index 298bf51d2bc6..76dc3bcb3410 100644 --- a/src/core/public/chrome/ui/header/recent_items.tsx +++ b/src/core/public/chrome/ui/header/recent_items.tsx @@ -135,18 +135,15 @@ export const RecentItems = ({ ownFocus={false} panelPaddingSize="s" button={ - { setIsPreferencesPopoverOpen((IsPreferencesPopoverOpe) => !IsPreferencesPopoverOpe); }} - > - {i18n.translate('core.header.recent.preferences', { - defaultMessage: 'Preferences', - })} - + iconType="managementApp" + data-test-subj="preferencesSettingButton" + /> } isOpen={isPreferencesPopoverOpen} anchorPosition="downLeft" @@ -273,12 +270,13 @@ export const RecentItems = ({ panelPaddingSize="m" > {renderBreadcrumbs} - +

@@ -309,8 +307,9 @@ export const RecentItems = ({ - {item.label} + {item.label + ' '} {item.workspaceName ? ( ({item.workspaceName}) ) : null} @@ -328,7 +327,7 @@ export const RecentItems = ({ })} )} - + {preferencePopover}