Prechádzať zdrojové kódy

fix: block package icon not showing

Ahmad Kholid 2 rokov pred
rodič
commit
28a8c93af3

+ 2 - 2
src/components/block/BlockPackage.vue

@@ -4,8 +4,8 @@
       <img
         v-if="data.icon.startsWith('http')"
         :src="data.icon"
-        width="38"
-        height="38"
+        width="36"
+        height="36"
         class="mr-2 rounded-lg"
       />
       <div

+ 6 - 3
src/components/newtab/workflow/editor/EditorLocalSavedBlocks.vue

@@ -35,12 +35,15 @@
           "
         >
           <div class="flex items-start p-4 flex-1">
-            <div class="w-8 flex-shrink-0">
+            <div
+              :class="{ 'mr-2': item.icon.startsWith('http') }"
+              class="w-8 flex-shrink-0"
+            >
               <img
                 v-if="item.icon.startsWith('http')"
                 :src="item.icon"
-                width="38px"
-                height="38px"
+                width="38"
+                height="38"
                 class="rounded-lg"
               />
               <v-remixicon