Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

GDGT-3236 Move field sorting loader to end of row to avoid layout shift (#82645)

Will Fry8658d420d227
diff --git a/frontend/src/metabase/data-studio/data-model/components/TableSection/TableSection.tsx b/frontend/src/metabase/data-studio/data-model/components/TableSection/TableSection.tsx
index 305b57eb19c..e05724c54a5 100644
--- a/frontend/src/metabase/data-studio/data-model/components/TableSection/TableSection.tsx
+++ b/frontend/src/metabase/data-studio/data-model/components/TableSection/TableSection.tsx
@@ -219,8 +219,6 @@ const TableSectionBase = ({
<Tabs.Panel value="field">
<Stack gap="lg">
<Group gap="lg" justify="flex-start" wrap="nowrap">
- {isUpdatingSorting && <Loader size="xs" />}
-
{!isSorting && hasFields && (
<ResponsiveButton
icon="sort_arrows"
@@ -243,6 +241,8 @@ const TableSectionBase = ({
onClick={() => setIsSorting(false)}
>{t`Done`}</ResponsiveButton>
)}
+
+ {isUpdatingSorting && <Loader size="xs" />}
</Group>
{!hasFields && (