This is an automated email from the ASF dual-hosted git repository.

elizabeth pushed a commit to branch elizabeth/fix-resize-bug
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 4d1570242cb8e75cd0d491a7bbc6b42da64e88a3
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Wed Jul 30 14:17:23 2025 -0700

    fix(theme-list): reorder buttons to place import leftmost (#34389)
    
    Co-authored-by: Claude <[email protected]>
---
 superset-frontend/src/pages/ThemeList/index.tsx | 32 ++++++++++++-------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/superset-frontend/src/pages/ThemeList/index.tsx 
b/superset-frontend/src/pages/ThemeList/index.tsx
index 36419c4e11..c9ec06dc00 100644
--- a/superset-frontend/src/pages/ThemeList/index.tsx
+++ b/superset-frontend/src/pages/ThemeList/index.tsx
@@ -338,6 +338,22 @@ function ThemesList({
 
   const subMenuButtons: SubMenuProps['buttons'] = [];
 
+  if (canImport) {
+    subMenuButtons.push({
+      name: (
+        <Tooltip
+          id="import-tooltip"
+          title={t('Import themes')}
+          placement="bottomRight"
+        >
+          <Icons.DownloadOutlined iconSize="l" data-test="import-button" />
+        </Tooltip>
+      ),
+      buttonStyle: 'link',
+      onClick: openThemeImportModal,
+    });
+  }
+
   if (canDelete || canExport) {
     subMenuButtons.push({
       name: t('Bulk select'),
@@ -358,22 +374,6 @@ function ThemesList({
     });
   }
 
-  if (canImport) {
-    subMenuButtons.push({
-      name: (
-        <Tooltip
-          id="import-tooltip"
-          title={t('Import themes')}
-          placement="bottomRight"
-        >
-          <Icons.DownloadOutlined iconSize="l" data-test="import-button" />
-        </Tooltip>
-      ),
-      buttonStyle: 'link',
-      onClick: openThemeImportModal,
-    });
-  }
-
   menuData.buttons = subMenuButtons;
 
   const filters: ListViewFilters = useMemo(

Reply via email to