mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: fix broken img layout (#17525)
resolves #17507 Before <img width="629" alt="Screenshot 2025-04-23 at 11 01 55" src="https://github.com/user-attachments/assets/79e2945b-0301-4cf5-9b25-f112bac9c2ff" /> After <img width="629" alt="Screenshot 2025-04-23 at 11 02 45" src="https://github.com/user-attachments/assets/c74d3c03-ebee-42e6-bd16-b4610139cb86" />
This commit is contained in:
@ -86,13 +86,11 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ parameter, isPreset }) => {
|
||||
return (
|
||||
<div className="flex items-start gap-2">
|
||||
{parameter.icon && (
|
||||
<span className="w-5 h-5">
|
||||
<ExternalImage
|
||||
className="w-full h-full mt-0.5 object-contain"
|
||||
alt="Parameter icon"
|
||||
src={parameter.icon}
|
||||
/>
|
||||
</span>
|
||||
<ExternalImage
|
||||
className="w-5 h-5 mt-0.5 object-contain"
|
||||
alt="Parameter icon"
|
||||
src={parameter.icon}
|
||||
/>
|
||||
)}
|
||||
|
||||
<div className="flex flex-col w-full gap-1">
|
||||
|
Reference in New Issue
Block a user