Skip to content

Commit

Permalink
Fix overflow text in dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Jan 15, 2025
1 parent 0c5f7f5 commit ac76dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Item = React.forwardRef<HTMLDivElement, ItemProps>(
{icon}
</div>
) : null}
<span className="truncate">{children}</span>
<span className="flex-grow truncate">{children}</span>
</div>
{trailingVisual}
{shortcut ? (
Expand Down
2 changes: 1 addition & 1 deletion src/routes/notes_.$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function NotePage() {
</span>
</div>
}
selected={font === "sans-serif"}
selected={font !== "serif"}
onSelect={() => setFont("sans-serif")}
>
Sans-serif
Expand Down

0 comments on commit ac76dd1

Please sign in to comment.