From 16fa869260dc87a1ce686bcf5db997629ce4ffb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sat, 29 Aug 2026 00:12:31 +0100 Subject: [PATCH] the dock rounds its tiles; now it clips them too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reported as a plugin whose dock tile had square corners while every other one was rounded, and the expectation was right: the rounding IS dock infrastructure and has been there all along. it was simply never reaching the artwork. the box is `rounded-xl` and the image inside it is not clipped. a `badge` tile insets its glyph to h-7, so the corners are empty and nothing looked wrong for as long as every plugin used one. `bare` fills the box edge to edge — so the first plugin to ship a logo on an OPAQUE background drew its own square corners over a rounded box, and became the one tile in the row that had not been told the shape. `overflow-hidden`, in the dock and in spotlight, which had the identical bug a few pixels away. it fixes every bare plugin rather than this one, and it is a no-op for badge tiles, which is why it belongs on the box and not on the image. the plugins list drew the same artwork with no rounding at all while the grid beside it used `rounded-xl`. rounded to match. Co-Authored-By: Claude Opus 5 Officer-Session: 656f5c85-e49a-4f1f-b9f3-042a04b4d043 --- src/apps/officer-web/Screens/Dashboard/Layout/Dock.tsx | 8 +++++++- .../Screens/Dashboard/Layout/Spotlight/Spotlight.tsx | 5 ++++- .../officerdev/src/apps/Plugins/PluginDetail.tsx | 6 ++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/apps/officer-web/Screens/Dashboard/Layout/Dock.tsx b/src/apps/officer-web/Screens/Dashboard/Layout/Dock.tsx index 750d7fa0..25eaf8dd 100644 --- a/src/apps/officer-web/Screens/Dashboard/Layout/Dock.tsx +++ b/src/apps/officer-web/Screens/Dashboard/Layout/Dock.tsx @@ -109,10 +109,16 @@ export const Dock = ({ items, className, boundaryRef }: DockProps) => { {item.label}
{ - if (plugin.image) return ; + if (plugin.image) return ; const Glyph = resolveIcon(plugin.icon ?? 'Box'); return ; }; @@ -431,7 +431,9 @@ export const PluginDetail = () => { return (
- {plugin.image ? : null} + {plugin.image ? ( + + ) : null}

{plugin.label}

{plugin.summary}