瀏覽代碼

fix: Limit icon width

#697
MystiPanda 1 年之前
父節點
當前提交
8910dfaecf
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/proxy/proxy-render.tsx

+ 3 - 3
src/components/proxy/proxy-render.tsx

@@ -76,7 +76,7 @@ export const ProxyRender = (props: RenderProps) => {
           group.icon.trim().startsWith("http") && (
             <img
               src={iconCachePath === "" ? group.icon : iconCachePath}
-              height="32px"
+              width="32px"
               style={{ marginRight: "12px", borderRadius: "6px" }}
             />
           )}
@@ -85,7 +85,7 @@ export const ProxyRender = (props: RenderProps) => {
           group.icon.trim().startsWith("data") && (
             <img
               src={group.icon}
-              height="32px"
+              width="32px"
               style={{ marginRight: "12px", borderRadius: "6px" }}
             />
           )}
@@ -94,7 +94,7 @@ export const ProxyRender = (props: RenderProps) => {
           group.icon.trim().startsWith("<svg") && (
             <img
               src={`data:image/svg+xml;base64,${btoa(group.icon)}`}
-              height="32px"
+              width="32px"
             />
           )}
         <ListItemText