Skip to content

Commit

Permalink
Reduce footer height to 32px (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Jun 20, 2024
1 parent b907eb7 commit 7f77f2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function RegistrationLink({
color="link.blue"
fontSize="xs"
borderWidth={1}
borderColor="solid.secondary"
>
{children}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions packages/keychain/src/components/layout/Container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function Container({
);
}

export const FOOTER_HEIGHT = 40;
export const FOOTER_HEIGHT = 32;
export const PORTAL_WINDOW_HEIGHT = 600;

function Wrapper({
Expand Down Expand Up @@ -99,7 +99,7 @@ function Wrapper({
const LayoutContext = createContext<LayoutContextValue>({
variant: "default",
footerHeight: 0,
setFooterHeight: () => {},
setFooterHeight: () => { },
});

type LayoutContextValue = {
Expand Down
6 changes: 3 additions & 3 deletions packages/keychain/src/components/layout/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ export function Footer({
() => (origin ? new URL(origin).hostname : undefined),
[origin],
);
const maxH = `${
(isIframe() ? window.innerHeight : PORTAL_WINDOW_HEIGHT) - TOP_BAR_HEIGHT
}px`;
const maxH = `${(isIframe() ? window.innerHeight : PORTAL_WINDOW_HEIGHT) - TOP_BAR_HEIGHT
}px`;
const { footerHeight } = useLayout();

useEffect(() => {
Expand Down Expand Up @@ -155,6 +154,7 @@ export function Footer({
as={NextLink}
href="https://cartridge.gg"
target="_blank"
overflow="hidden"
>
<Text fontSize="xs" color="currentColor">
Controller by
Expand Down

0 comments on commit 7f77f2e

Please sign in to comment.