Skip to content

Commit

Permalink
#1 Fix vertical alignment of maximize button
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbink committed Aug 20, 2022
1 parent 4f4fb77 commit 4af6eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Tooltip: React.FC<TooltipProps> = ({
<RadixTooltip.Root>
<RadixTooltip.Trigger>{children}</RadixTooltip.Trigger>
<RadixTooltip.Content
className="bg-darkGrey text-offWhite text-[12px] rounded px-2 py-1"
className="bg-darkGrey text-offWhite text-[12px] rounded px-2 py-1 leading-none"
side={position}
sideOffset={5}
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/entry/EntryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ export const EntryForm: React.FC<EntryBodyProps> = ({
editorClassName={cx("p-6")}
placeholder="Text eingeben..."
toolbarClassName={cx(
"p-2 relative rounded-none border border-x-0 border-t-0 border-lightGrey"
"p-2 relative rounded-none border border-x-0 border-t-0 border-lightGrey leading-none"
)}
toolbar={toolbarOptions}
toolbarCustomButtons={[
<span className="absolute right-2 top-1/2 -translate-y-1/2">
<span className="absolute right-2 top-1/2 -translate-y-1/2 leading-[0]">
<Tooltip
position="top"
text={isExpanded ? "Minimieren" : "Maximieren"}
Expand Down

0 comments on commit 4af6eef

Please sign in to comment.