fix(entry-read-history): update styling for improved visual consistency
- Changed background class from 'bg-material-medium' to 'bg-material-opaque' in EntryReadHistory component. - Updated context menu shadow and background classes for better alignment with design standards in EntryReadHistory.shared component. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
+2
-2
@@ -54,7 +54,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
|
||||
marginLeft: `-${LIMIT * 8}px`,
|
||||
zIndex: LIMIT + 1,
|
||||
}}
|
||||
className="no-drag-region border-border bg-material-medium ring-background relative flex size-7 items-center justify-center rounded-full border ring-2"
|
||||
className="no-drag-region border-border bg-material-opaque ring-background relative flex size-7 items-center justify-center rounded-full border ring-2"
|
||||
>
|
||||
<span className="text-text-secondary text-[10px] font-medium tabular-nums">
|
||||
+{Math.min(totalCount - LIMIT, 99)}
|
||||
@@ -69,7 +69,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
|
||||
align="start"
|
||||
side="right"
|
||||
className={clsx(
|
||||
"bg-background z-10 rounded-md border drop-shadow",
|
||||
"shadow-menu bg-material-medium shadow-context-menu backdrop-blur-background rounded-md border",
|
||||
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
||||
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
||||
"data-[state=closed]:slide-out-to-left-5 data-[state=open]:slide-in-from-left-5",
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ export const EntryUserRow: Component<{ userId: string }> = memo(({ userId }) =>
|
||||
}}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="cursor-button hover:bg-material-medium relative flex min-w-0 max-w-[50ch] shrink-0 items-center gap-2 truncate rounded-md p-1 px-2"
|
||||
className="cursor-button hover:bg-theme-selection-hover hover:text-theme-selection-foreground relative flex min-w-0 max-w-[50ch] shrink-0 items-center gap-2 truncate rounded-md p-1 px-2"
|
||||
>
|
||||
<Avatar className="border-border ring-background block aspect-square size-7 overflow-hidden rounded-full border ring-1">
|
||||
<AvatarImage src={replaceImgUrlIfNeed(user?.image || undefined)} />
|
||||
|
||||
Reference in New Issue
Block a user