File tree Expand file tree Collapse file tree
ui/desktop/src/components/settings/providers/modal/subcomponents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,19 +32,24 @@ export default function ProviderLogo({ providerName }: ProviderLogoProps) {
3232 const logoKey = providerName . toLowerCase ( ) ;
3333 const logo = providerLogos [ logoKey ] || DefaultLogo ;
3434
35- // Apply invert filter for xAI logo since it's black on transparent
36- const imageStyle = logoKey === 'xai'
37- ? {
38- filter : 'invert(1)' ,
39- opacity : 0.9
40- }
41- : { } ;
35+ // Special handling for xAI logo
36+ const isXai = logoKey === 'xai' ;
37+ const imageStyle = isXai ? { filter : 'invert(1)' , opacity : 0.9 } : { } ;
38+
39+ // Use smaller size for xAI logo to fit better in circle
40+ const imageClassName = isXai
41+ ? "w-8 h-8 object-contain" // Smaller size for xAI
42+ : "w-16 h-16 object-contain" ; // Default size for others
4243
4344 return (
4445 < div className = "flex justify-center mb-2" >
4546 < div className = "w-12 h-12 bg-black rounded-full overflow-hidden flex items-center justify-center" >
46- < img src = { logo } alt = { `${ providerName } logo` } className = "w-16 h-16 object-contain"
47- style = { imageStyle } />
47+ < img
48+ src = { logo }
49+ alt = { `${ providerName } logo` }
50+ className = { imageClassName }
51+ style = { imageStyle }
52+ />
4853 </ div >
4954 </ div >
5055 ) ;
You can’t perform that action at this time.
0 commit comments