Skip to content
Snippets Groups Projects
Unverified Commit 316367be authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix public action page look (#28365)

* Fix unexpected `footerVariant` prop

* Fix `body` background color

* Fix horizontal scroll on mobile
parent 8f86eb00
No related branches found
No related tags found
No related merge requests found
body {
background-color: transparent;
}
.EmbedFrame {
background-color: white;
}
......
......@@ -3,6 +3,7 @@ import { css } from "@emotion/react";
import FormSubmitButton from "metabase/core/components/FormSubmitButton";
import BaseLoadingAndErrorWrapper from "metabase/components/LoadingAndErrorWrapper";
import { color } from "metabase/lib/colors";
import { breakpointMaxSmall } from "metabase/styled-components/theme";
export const LoadingAndErrorWrapper = styled(BaseLoadingAndErrorWrapper)`
display: flex;
......@@ -25,6 +26,11 @@ export const FormContainer = styled.div`
${FormSubmitButton.Button} {
width: 100%;
}
${breakpointMaxSmall} {
width: 100%;
padding: 0 0.5rem;
}
`;
const titleStyle = css`
......
......@@ -62,7 +62,7 @@ function PublicActionLoader({ params, setErrorPage }: Props) {
}, [action, params.uuid, setErrorPage]);
return (
<EmbedFrame footerVariant="big">
<EmbedFrame footerVariant="large">
<LoadingAndErrorWrapper loading={!action}>
{renderContent}
</LoadingAndErrorWrapper>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment