Skip to content

Commit 7a6d627

Browse files
committed
fix(desktop): adjust styling for list item and entry header components
- Changed font weight from 'semibold' to 'medium' in ListItem component for better visual consistency. - Updated icon class in EntryHeader component to ensure proper styling and alignment of elements. These adjustments improve the overall appearance and readability of the entry components. Signed-off-by: Innei <[email protected]>
1 parent 689dac6 commit 7a6d627

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function ListItem({
156156
>
157157
{entry.entries.title ? (
158158
<EntryTranslation
159-
className={cn("hyphens-auto font-semibold", lineClamp.title)}
159+
className={cn("hyphens-auto font-medium", lineClamp.title)}
160160
source={entry.entries.title}
161161
target={translation?.title}
162162
/>

apps/desktop/layer/renderer/src/modules/entry-content/header.electron.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function EntryHeaderImpl({ view, entryId, className, compact }: EntryHeaderProps
6060
<span className="min-w-[50%] shrink truncate font-bold">
6161
{entryTitleMeta.title}
6262
</span>
63-
<i className="i-mgc-line-cute-re size-[10px] shrink-0 translate-y-[-3px] rotate-[-25deg]" />
64-
<span className="text-text-secondary text-headline shrink truncate">
63+
<i className="i-mgc-line-cute-re text-text-secondary size-[10px] shrink-0 translate-y-[-3px] rotate-[-25deg]" />
64+
<span className="text-text-secondary text-headline shrink -translate-y-px truncate">
6565
{entryTitleMeta.description}
6666
</span>
6767
</m.div>

0 commit comments

Comments
 (0)