The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Avoid scrolling on autoconnected message (#62718)
Romeo Van Snick1aad10c239a9
diff --git a/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js b/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.jsindex 8b450a329d8..bba5c7c7368 100644--- a/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js+++ b/e2e/test/scenarios/filters-reproductions/dashboard-filters-reproductions.cy.spec.js@@ -5076,6 +5076,38 @@ describe("Issue 46767", () => {});});+describe("issue 46372", () => {+ beforeEach(() => {+ H.restore();+ cy.signInAsAdmin();+ });++ it("should not show a scrollbar when auto-connecting a dashcard filter (metabase#46372)", () => {+ H.createDashboardWithQuestions({+ questions: [+ { name: "Question A", query: { "source-table": PRODUCTS_ID } },+ { name: "Question B", query: { "source-table": PRODUCTS_ID } },+ ],+ }).then(({ dashboard }) => {+ H.visitDashboard(dashboard.id);+ H.editDashboard(dashboard.id);++ H.setFilter("Text or Category", "Is");+ H.selectDashboardFilter(cy.findAllByTestId("dashcard").first(), "Title");+ H.undoToast().findByRole("button", { name: "Auto-connect" }).click();++ H.main().findByText("Auto-connected").should("be.visible");+ H.main()+ .findByText("Auto-connected")+ .parent()+ .parent()+ .then(($body) => {+ cy.wrap($body[0].scrollHeight).should("eq", $body[0].offsetHeight);+ });+ });+ });+});+describe("issue 49319", () => {beforeEach(() => {H.restore();diff --git a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardCardParameterMapper.tsx b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardCardParameterMapper.tsxindex 708c042f59e..cecfd15ca76 100644--- a/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardCardParameterMapper.tsx+++ b/frontend/src/metabase/dashboard/components/DashCard/DashCardParameterMapper/DashCardCardParameterMapper.tsx@@ -114,6 +114,7 @@ export function DashCardCardParameterMapper({w="100%"pos="relative"my={!isMobile && dashcard.size_y < 2 ? "0" : "0.5rem"}+ py="lg">{hasSeries && (<Box maw="100px" mb="sm" fz="0.83em" className={S.CardLabel}>@@ -155,7 +156,7 @@ export function DashCardCardParameterMapper({mt="sm"align="center"pos="absolute"- bottom={-20}+ bottom={0}style={styles}><Icon name="sparkles" size="16" />