Skip to content

Commit

Permalink
💄 style: Update Markdown style
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 17, 2024
1 parent 2860e8a commit a8000d3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/components/NativeSelect/SelectItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ForwardedRef, forwardRef, memo } from 'react';
import { ForwardedRef, forwardRef } from 'react';

import { useStyles } from './style';

Expand All @@ -12,8 +12,8 @@ interface SelectItemProps {
value: any;
}

const SelectItem = memo<SelectItemProps>(
forwardRef(({ value, label, prefixCls, isSelected, isActive, disabled, ...props }, reference) => {
const SelectItem = forwardRef<any, SelectItemProps>(
({ value, label, prefixCls, isSelected, isActive, disabled, ...props }, reference) => {
const { styles, cx } = useStyles(prefixCls);

return (
Expand All @@ -34,7 +34,7 @@ const SelectItem = memo<SelectItemProps>(
{label}
</button>
);
}),
},
);

export default SelectItem;
2 changes: 0 additions & 2 deletions src/layouts/DocLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ const App = memo(() => {
</>
);
});

export default App;
8 changes: 4 additions & 4 deletions src/slots/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Typography } from '@lobehub/ui';
import { Skeleton } from 'antd';
import { useResponsive } from 'antd-style';
import isEqual from 'fast-deep-equal';
Expand All @@ -22,16 +23,15 @@ const Content = memo<DivProps>(({ children, ...props }) => {

return (
<Flexbox gap={mobile ? 0 : 24} width={'100%'} {...props}>
<div style={{ height: 0 }} />
<div className={cx('dumi-antd-style-content', styles.content)}>
<Skeleton active loading={loading} paragraph style={{ minHeight: '50vh' }} />
<div
<Skeleton active loading={loading} paragraph />
<Typography
style={{
display: loading ? 'none' : undefined,
}}
>
{children}
</div>
</Typography>
</div>
<ContentFooter />
</Flexbox>
Expand Down
15 changes: 15 additions & 0 deletions src/slots/Content/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ export const useStyles = createStyles(
padding-inline-start: 18px;
}
}
summary kbd {
transform: unset;
padding: unset;
font-size: inherit;
line-height: inherit;
color: inherit;
background: unset;
border: unset;
box-shadow: unset;
}
}
`,
),
}),
Expand Down
2 changes: 1 addition & 1 deletion src/slots/Features/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Features = memo(() => {

if (!features?.length) return;

return <F items={features} style={{ margin: '0 16px', maxWidth: theme.contentMaxWidth }} />;
return <F items={features} maxWidth={theme.contentMaxWidth} style={{ margin: '0 16px' }} />;
});

export default Features;

0 comments on commit a8000d3

Please sign in to comment.