Skip to content

Commit

Permalink
Fix overflow and ensure visibility of action buttons in WidgetHeader …
Browse files Browse the repository at this point in the history
…component (#78)
  • Loading branch information
Ktbch authored Jun 25, 2024
1 parent b895aa8 commit b2b05af
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ export function WidgetHeader({

return (
<div className="flex justify-between items-start w-full">
<div className="flex flex-1 w-full gap-2">
<div className="flex flex-1 items-center overflow-hidden w-full gap-2">

Check failure on line 38 in src/frontend/views/Dashboard/Widget/_components/WidgetHeader/index.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `·`
{setting && (
<SortableKnob>
<GrabIcon width={18} />
</SortableKnob>
)}
<p className="truncate w-[calc(100%-1px)]">{title} TODO</p>
<p className="truncate max-w-[calc(100%-5px)] w-full ">

Check failure on line 44 in src/frontend/views/Dashboard/Widget/_components/WidgetHeader/index.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `··`
{title} TODO DONE
</p>
</div>
{setting ? (
<ActionButtons
Expand Down

0 comments on commit b2b05af

Please sign in to comment.