Fix: place toolbar icons in the center of the toolbarItem
This commit is contained in:
parent
4fd9677fb6
commit
a335bb7989
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ export default function ToolbarSelectItem({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const filteredShortcut = fixedShortcut.filter(
|
const filteredShortcut = fixedShortcut.filter(
|
||||||
(key) => !key.toLowerCase().includes("shift")
|
(key) => !key.toLowerCase().includes("shift"),
|
||||||
);
|
);
|
||||||
let shortcutWPlus = "";
|
let shortcutWPlus = "";
|
||||||
if (!hasShift) shortcutWPlus = filteredShortcut.join("+");
|
if (!hasShift) shortcutWPlus = filteredShortcut.join("+");
|
||||||
|
|
@ -26,7 +26,7 @@ export default function ToolbarSelectItem({
|
||||||
<div className={`flex ${style}`} data-testid={dataTestId}>
|
<div className={`flex ${style}`} data-testid={dataTestId}>
|
||||||
<ForwardedIconComponent
|
<ForwardedIconComponent
|
||||||
name={icon}
|
name={icon}
|
||||||
className={` top-0.5 mr-2 ${icon === "Share3" ? "absolute left-2 top-[0.2em] h-6 w-6" : "h-4 w-4"} ${
|
className={` mr-2 ${icon === "Share3" ? "absolute left-2 top-[0.25em] h-6 w-6" : "mt-[0.15em] h-4 w-4"} ${
|
||||||
ping && "animate-pulse text-green-500"
|
ping && "animate-pulse text-green-500"
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue