Skip to content

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

Fix metabot button overlap on transform screen (#72727)

Nick Fitzpatrick98b7ae8adc60
diff --git a/e2e/test/scenarios/metrics/metrics-editing.cy.spec.js b/e2e/test/scenarios/metrics/metrics-editing.cy.spec.js
index 4ccfc04f234..dcdacb92adb 100644
--- a/e2e/test/scenarios/metrics/metrics-editing.cy.spec.js
+++ b/e2e/test/scenarios/metrics/metrics-editing.cy.spec.js
@@ -515,7 +515,8 @@ describe("scenarios > metrics > editing", () => {
cy.viewport(800, 600);
H.getNotebookStep("summarize").within(() => {
- cy.findByText("Formula").should("be.visible");
+ // We need the scroll because of the viewport change, the next findByText is technically off the screen without it
+ cy.findByText("Formula").should("be.visible").scrollIntoView({});
cy.findAllByText("Default time dimension")
.filter(":visible")
.should("have.length", 1);
diff --git a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.module.css b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.module.css
index 1e9076eb625..020f530d5d2 100644
--- a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.module.css
+++ b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.module.css
@@ -1,4 +1,4 @@
-.ProfileLink {
+.ButtonGroup {
/* This is to keep the app switcher position a consistent space away
from the right when the window is smaller than the data studio
typically allows. Once we have a more responsive data studio layout
diff --git a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
index e7508239e60..46f4fd7277a 100644
--- a/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
+++ b/frontend/src/metabase/data-studio/common/components/PaneHeader/PaneHeader.tsx
@@ -48,12 +48,12 @@ export const PaneHeader = ({
}: PaneHeaderProps) => {
return (
<Stack gap={0} pt="xs" {...rest}>
- <Flex mb="lg" mt="md" w="100%">
+ <Flex mb="lg" mt="md" w="100%" h="xl">
{breadcrumbs}
- <Group ml="auto" gap="md">
+ <Group ml="auto" gap="md" className={S.ButtonGroup}>
{showMetabotButton && <MetabotDataStudioButton />}
- {showAppSwitcher && <AppSwitcher className={S.ProfileLink} />}
+ {showAppSwitcher && <AppSwitcher />}
</Group>
</Flex>
<Group