From d7118fba15f916e16c7d2ab5b12a4a94a87a011e Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 17 Feb 2026 02:46:23 +0530 Subject: [PATCH] refactor: enhance InsertToolbarButton and TurnIntoToolbarButton with improved styling for dark mode and better layout management --- surfsense_web/components/ui/insert-toolbar-button.tsx | 6 +++--- surfsense_web/components/ui/turn-into-toolbar-button.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/surfsense_web/components/ui/insert-toolbar-button.tsx b/surfsense_web/components/ui/insert-toolbar-button.tsx index 91d807ef0..4abf6a57b 100644 --- a/surfsense_web/components/ui/insert-toolbar-button.tsx +++ b/surfsense_web/components/ui/insert-toolbar-button.tsx @@ -195,12 +195,12 @@ export function InsertToolbarButton(props: DropdownMenuProps) { {groups.map(({ group, items }) => ( - + {items.map(({ icon, label, value, onSelect, focusEditor }) => ( -
+
{icon} {label || value}
diff --git a/surfsense_web/components/ui/turn-into-toolbar-button.tsx b/surfsense_web/components/ui/turn-into-toolbar-button.tsx index 507344ce2..4b8c80c8e 100644 --- a/surfsense_web/components/ui/turn-into-toolbar-button.tsx +++ b/surfsense_web/components/ui/turn-into-toolbar-button.tsx @@ -172,7 +172,7 @@ export function TurnIntoToolbarButton({ tooltip = 'Turn into', ...props }: Dropd {turnIntoItems.map(({ icon, label, value: itemValue }) => ( @@ -180,7 +180,7 @@ export function TurnIntoToolbarButton({ tooltip = 'Turn into', ...props }: Dropd - {icon} + {icon} {label} ))}