فهرست منبع

style: show file name preview only when editing

tophf 4 سال پیش
والد
کامیت
2b36447af3
1فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 7 3
      src/options/views/tab-settings/vm-export.vue

+ 7 - 3
src/options/views/tab-settings/vm-export.vue

@@ -9,7 +9,7 @@
           <icon name="info"/>
           <icon name="info"/>
         </a>
         </a>
       </tooltip>
       </tooltip>
-      <span v-text="getFileName()"/>
+      <span hidden v-text="getFileName()"/>
     </div>
     </div>
     <div class="mt-1">
     <div class="mt-1">
       <setting-check name="exportValues" :label="i18n('labelExportScriptData')" />
       <setting-check name="exportValues" :label="i18n('labelExportScriptData')" />
@@ -166,11 +166,15 @@ async function exportData() {
     width: 13rem;
     width: 13rem;
   }
   }
   .icon {
   .icon {
-    width: 18px;
-    height: 18px;
+    width: 16px;
+    height: 16px;
+    fill: var(--fg);
   }
   }
   .tpl {
   .tpl {
     max-width: 30em;
     max-width: 30em;
+    &:focus-within ~ [hidden] {
+      display: initial;
+    }
     textarea {
     textarea {
       height: auto;
       height: auto;
       resize: none;
       resize: none;