@@ -77,25 +77,36 @@ def app_dialog_with_trigger(
7777 )
7878
7979
80- def integration_image (integration : str ):
80+ def integration_image (integration : str , class_name : str = "" ):
8181 integration_logo = integration .replace (" " , "_" ).lower ()
82- return ui .tooltip (
83- trigger = ui .avatar .root (
84- ui .avatar .image (
85- src = rx .color_mode_cond (
86- f"/integrations/light/{ integration_logo } .svg" ,
87- f"/integrations/dark/{ integration_logo } .svg" ,
88- ),
89- unstyled = True ,
90- class_name = "size-full" ,
91- ),
92- ui .avatar .fallback (
93- unstyled = True ,
82+ return ui .avatar .root (
83+ ui .avatar .image (
84+ src = rx .color_mode_cond (
85+ f"/integrations/light/{ integration_logo } .svg" ,
86+ f"/integrations/dark/{ integration_logo } .svg" ,
9487 ),
9588 unstyled = True ,
96- class_name = "size-4.75 flex items-center justify-center" ,
89+ class_name = "size-full" ,
90+ ),
91+ ui .avatar .fallback (
92+ unstyled = True ,
93+ ),
94+ unstyled = True ,
95+ class_name = ui .cn ("size-4 flex items-center justify-center" , class_name ),
96+ )
97+
98+
99+ def integrations_stack (integrations : list [str ]) -> rx .Component :
100+ return rx .el .div (
101+ rx .foreach (
102+ integrations ,
103+ lambda integration : rx .el .div (
104+ integration_image (integration , class_name = "size-4" ),
105+ title = integration ,
106+ class_name = "size-8 shrink-0 flex justify-center items-center rounded-full shadow-small border border-secondary-a5 bg-white-1 dark:bg-secondary-1" ,
107+ ),
97108 ),
98- content = integration ,
109+ class_name = "flex flex-row -space-x-2 flex-wrap gap-y-2" ,
99110 )
100111
101112
@@ -156,19 +167,17 @@ def extended_gallery_grid_item(
156167 ),
157168 rx .el .div (
158169 rx .el .span (
159- "App Integrations: " , class_name = "text-slate-9 font-base"
170+ "App Integrations: " ,
171+ class_name = "text-slate-9 text-sm font-medium" ,
160172 ),
161173 rx .el .div (
162- * [
163- integration_image (integration )
164- for integration in app_integrations
165- ],
166- class_name = "flex flex-row gap-3.5 items-center" ,
174+ integrations_stack (app_integrations ),
175+ class_name = "flex flex-row gap-3.5 items-center flex-wrap" ,
167176 ),
168177 class_name = "flex flex-row items-center gap-2 mt-2" ,
169178 ),
170179 class_name = (
171- "flex flex-col w-full px-4 py-3 border-t border-m-slate-4 dark:border-m-slate-12 gap-4 relative pb-4" ,
180+ "flex flex-col w-full px-4 py-3 border-t border-m-slate-4 dark:border-m-slate-12 gap-2 relative pb-4" ,
172181 ),
173182 ),
174183 class_name = "flex flex-col w-full" ,
0 commit comments