Skip to content

Commit

Permalink
fix(docs): browse section ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
realdreamer committed Aug 22, 2023
1 parent b9be21d commit 2306a29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/apps/docs/src/pages/docs/kadena/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Home: FC = () => {
</Text>
</div>

<Stack wrap="wrap" spacing="$2xs" width="100%">
<Stack wrap="wrap" width="100%">
<BrowseSection title="General" className={browseSectionWrapper}>
<Link href="/docs/kadena/overview">Overview of Kadena</Link>
<Link href="/docs/kadena/whitepapers">Whitepapers</Link>
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Home: FC<IProps> = ({ popularPages }) => {
>
<article className={articleClass}>
<Box marginBottom="$10">
<Stack wrap="wrap" spacing="$2xs">
<Stack wrap="wrap">
<BrowseSection title="General" className={browseSectionWrapper}>
<Link href="/docs/kadena">Overview of Kadena</Link>
<Link href="/docs/kadena/kda/manage-kda">Manage your KDA</Link>
Expand Down
12 changes: 4 additions & 8 deletions packages/apps/docs/src/styles/index.css.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { breakpoints, sprinkles } from '@kadena/react-ui/theme';
import { breakpoints, vars } from '@kadena/react-ui/theme';

import { style } from '@vanilla-extract/css';

const browseSectionWrapper = style([
sprinkles({
gap: '$4',
paddingY: 0,
paddingX: '$4',
}),
{
flexBasis: '48%',
flexBasis: '50%',
rowGap: vars.sizes.$4,
'@media': {
[breakpoints.md]: {
flexBasis: '30%',
flexBasis: '33%',
},
},
},
Expand Down

0 comments on commit 2306a29

Please sign in to comment.