Skip to content
Snippets Groups Projects
Unverified Commit 596c46ef authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

[Dashboard] Make apply button aligned with fields on small screens (#35062)

parent 4ab88d68
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@ import styled from "@emotion/styled";
import { css } from "@emotion/react";
import type { ComponentPropsWithoutRef } from "react";
import { color } from "metabase/lib/colors";
import { space } from "metabase/styled-components/theme";
import { breakpointMaxSmall, space } from "metabase/styled-components/theme";
import { FullWidthContainer } from "metabase/styled-components/layout/FullWidthContainer";
......@@ -117,6 +117,10 @@ export const ParametersWidgetContainer = styled(FullWidthContainer)<{
top: 0;
left: 0;
${breakpointMaxSmall} {
flex-direction: column;
}
${({ isEditing }) =>
isEditing &&
css`
......
import styled from "@emotion/styled";
import { space } from "metabase/styled-components/theme";
import { breakpointMaxSmall, space } from "metabase/styled-components/theme";
import Button from "metabase/core/components/Button/Button";
export const ApplyButton = styled(Button)`
margin-left: auto;
margin-top: ${space(1)};
${breakpointMaxSmall} {
width: 100%;
/* make button same height as fields on small screens */
padding-top: 11px;
padding-bottom: 11px;
}
`;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment