Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Prevent icons from shrinking

Terry Sutton335c88436903
diff --git a/packages/ui/src/components/GlassPanel/GlassPanel.tsx b/packages/ui/src/components/GlassPanel/GlassPanel.tsx
index 97ef87a4f8d..08c2106ddf2 100644
--- a/packages/ui/src/components/GlassPanel/GlassPanel.tsx
+++ b/packages/ui/src/components/GlassPanel/GlassPanel.tsx
@@ -32,7 +32,10 @@ const GlassPanel = ({
const IconBackground: React.FC = (props) => (
<div
- className={showIconBg ? 'bg-green-600 w-8 h-8 flex items-center justify-center rounded' : ''}
+ className={[
+ 'shrink-0',
+ showIconBg ? 'bg-green-600 w-8 h-8 flex items-center justify-center rounded' : '',
+ ].join(' ')}
>
{props.children}
</div>