Skip to content

Commit fc5ca16

Browse files
committed
fix: fab style
Signed-off-by: Innei <[email protected]>
1 parent d459308 commit fc5ca16

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

src/components/layout/header/config.ts

+11-10
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,22 @@ export const headerMenuConfig: IHeaderMenu[] = [
7474
icon: h(FaSolidUserFriends),
7575
path: '/friends',
7676
},
77-
{
78-
title: '之言',
79-
icon: h(FaSolidComment),
80-
path: '/recently',
81-
},
82-
{
83-
title: '项目',
84-
icon: h(MdiFlask),
85-
path: '/projects',
86-
},
77+
8778
{
8879
title: '其他',
8980
icon: h(FaSolidCircleNotch),
9081
path: '/favorite/music',
9182
subMenu: [
83+
{
84+
title: '之言',
85+
icon: h(FaSolidComment),
86+
path: '/recently',
87+
},
88+
{
89+
title: '项目',
90+
icon: h(MdiFlask),
91+
path: '/projects',
92+
},
9293
{
9394
title: '一言',
9495
path: '/says',

src/components/ui/fab/FABContainer.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ export const FABBase = (
9393
return (
9494
<button
9595
className={clsxm(
96-
'mt-2 inline-flex h-8 w-8 items-center justify-center rounded-md border border-accent bg-base-100 text-accent opacity-50 transition-all duration-300 hover:opacity-100 focus:opacity-100 focus:outline-none',
96+
'mt-2 inline-flex h-10 w-10 items-center justify-center',
97+
'border border-accent transition-all duration-300 hover:opacity-100 focus:opacity-100 focus:outline-none',
98+
'rounded-xl border border-zinc-400/20 bg-base-100/80 shadow-lg backdrop-blur-lg dark:border-zinc-500/30 dark:bg-zinc-800/80 dark:text-zinc-200',
99+
'bg-base-100 shadow-lg',
97100
(!show || appearTransition) && 'translate-x-[60px]',
98101
!mounted && 'hidden',
99102
className,

src/components/ui/float-popover/FloatPopover.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ export const FloatPopover: FC<
235235
aria-modal="true"
236236
className={clsxm(
237237
'bg-base-100 !shadow-out-sm focus:!shadow-out-sm focus-visible:!shadow-out-sm',
238+
'rounded-xl border border-zinc-400/20 bg-base-100/80 p-4 shadow-lg outline-none backdrop-blur-lg dark:border-zinc-500/30',
239+
238240
headless && styles['headless'],
239241
animate && styles['animate'],
240242
type === 'tooltip'

src/components/ui/float-popover/index.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.popover-root {
2-
@apply relative z-[2] overflow-hidden rounded-lg p-4 shadow-out-sm;
2+
@apply relative z-[2] overflow-hidden p-4 shadow-out-sm;
33
}
44

55
.popover-root,

0 commit comments

Comments
 (0)