Skip to content

Commit

Permalink
show on most mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Sep 16, 2024
1 parent ce865d8 commit 5015827
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 33 deletions.
1 change: 1 addition & 0 deletions customers/beehiiv/beehiiv-sdks
Submodule beehiiv-sdks added at c2e371
2 changes: 1 addition & 1 deletion customers/carbon/carbon-sdks
2 changes: 1 addition & 1 deletion customers/eyelevel/groundx-api-schema
2 changes: 1 addition & 1 deletion customers/humanloop/humanloop-sdks
2 changes: 1 addition & 1 deletion customers/newscatcher/newscatcher-sdks
2 changes: 1 addition & 1 deletion customers/snaptrade/snaptrade-sdks
Submodule snaptrade-sdks updated 513 files
2 changes: 1 addition & 1 deletion customers/splitit/splitit-web-sdks
76 changes: 52 additions & 24 deletions generator/konfig-next-app/src/components/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,33 +103,61 @@ export const LayoutHeader = observer(
)}
</Group>
<Group className="flex-none">
{cta ? (
<>
<MediaQuery largerThan="sm" styles={{ display: 'none' }}>
<Button
variant={
!hasLightAndDarkLogo
? 'filled'
: theme.colorScheme === 'dark'
? 'light'
: 'filled'
}
component="a"
size="xs"
className="max-[400px]:hidden"
target="_blank"
color={
!hasLightAndDarkLogo
? 'dark'
: theme.colorScheme === 'dark'
? 'brand'
: 'dark'
}
href={cta.url}
>
{cta.label}
</Button>
</MediaQuery>
<MediaQuery smallerThan="sm" styles={{ display: 'none' }}>
<Button
variant={
!hasLightAndDarkLogo
? 'filled'
: theme.colorScheme === 'dark'
? 'light'
: 'filled'
}
component="a"
target="_blank"
color={
!hasLightAndDarkLogo
? 'dark'
: theme.colorScheme === 'dark'
? 'brand'
: 'dark'
}
href={cta.url}
>
{cta.label}
</Button>
</MediaQuery>
</>
) : null}
<div className="sm:hidden">
<Search />
</div>
{cta ? (
<Button
variant={
!hasLightAndDarkLogo
? 'filled'
: theme.colorScheme === 'dark'
? 'light'
: 'filled'
}
component="a"
target="_blank"
className="hidden sm:block"
color={
!hasLightAndDarkLogo
? 'dark'
: theme.colorScheme === 'dark'
? 'brand'
: 'dark'
}
href={cta.url}
>
{cta.label}
</Button>
) : null}
<ColorSchemeToggle hasLightAndDarkLogo={typeof logo !== 'string'} />
</Group>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion generator/konfig-workflows
2 changes: 1 addition & 1 deletion sdks/openapi-examples
Submodule openapi-examples updated 643 files

0 comments on commit 5015827

Please sign in to comment.