File tree Expand file tree Collapse file tree 2 files changed +31
-13
lines changed
app/(main)/websites/[id]/_components/tabs Expand file tree Collapse file tree 2 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -850,6 +850,7 @@ export function WebsiteOverviewTab({
850850 accessorKey : 'name' ,
851851 header : 'Browser' ,
852852 cell : createTechnologyCell ( 'browser' ) ,
853+ size : 180 ,
853854 } ,
854855 {
855856 id : 'visitors' ,
@@ -885,6 +886,7 @@ export function WebsiteOverviewTab({
885886 accessorKey : 'name' ,
886887 header : 'Operating System' ,
887888 cell : createTechnologyCell ( 'os' ) ,
889+ size : 200 ,
888890 } ,
889891 {
890892 id : 'visitors' ,
Original file line number Diff line number Diff line change @@ -177,8 +177,16 @@ export function PublicIcon({
177177
178178 return (
179179 < div
180- className = { cn ( 'relative flex-shrink-0' , className ) }
181- style = { { width : iconSize , height : iconSize } }
180+ className = { cn (
181+ 'relative flex-shrink-0 overflow-hidden rounded' ,
182+ className
183+ ) }
184+ style = { {
185+ width : iconSize ,
186+ height : iconSize ,
187+ minWidth : iconSize ,
188+ minHeight : iconSize ,
189+ } }
182190 >
183191 < Image
184192 alt = { name }
@@ -258,16 +266,24 @@ export function CountryFlag({
258266 }
259267
260268 return (
261- < Image
262- alt = { `${ country } flag` }
263- className = { cn ( 'h-4 w-6 rounded-sm object-cover' , className ) }
264- height = { iconSize }
265- onError = { ( e ) => {
266- const img = e . target as HTMLImageElement ;
267- img . style . display = 'none' ;
268- } }
269- src = { `https://purecatamphetamine.github.io/country-flag-icons/3x2/${ country . toUpperCase ( ) } .svg` }
270- width = { 24 }
271- />
269+ < div
270+ className = { cn (
271+ 'relative flex-shrink-0 overflow-hidden rounded-sm' ,
272+ className
273+ ) }
274+ style = { { width : 24 , height : iconSize , minWidth : 24 , minHeight : iconSize } }
275+ >
276+ < Image
277+ alt = { `${ country } flag` }
278+ className = { cn ( 'object-cover' ) }
279+ height = { iconSize }
280+ onError = { ( e ) => {
281+ const img = e . target as HTMLImageElement ;
282+ img . style . display = 'none' ;
283+ } }
284+ src = { `https://purecatamphetamine.github.io/country-flag-icons/3x2/${ country . toUpperCase ( ) } .svg` }
285+ width = { 24 }
286+ />
287+ </ div >
272288 ) ;
273289}
You can’t perform that action at this time.
0 commit comments