Skip to content

Commit

Permalink
fix: when setting theme to dark, the position of catalog is abnormal(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Sep 20, 2024
1 parent 260e7bb commit a5c5eb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/MdCatalog/MdCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ const MdCatalog = defineComponent({
return () => (
<div
class={[
`${prefix}-catalog${props.theme === 'dark' ? '-dark' : ''}`,
`${props.class}`
`${prefix}-catalog`,
props.theme === 'dark' && `${prefix}-catalog-dark`,
props.class || ''
]}
ref={catalogRef}
>
Expand Down

0 comments on commit a5c5eb7

Please sign in to comment.