Parcourir la source

refactor: 调整布局为滚动并固定面板高度

yusheng il y a 2 mois
Parent
commit
23f5038d18
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/views/doc/components/aa.vue

+ 6 - 1
src/views/doc/components/aa.vue

@@ -529,9 +529,10 @@
 
   .converter-layout {
     display: flex;
-    flex-wrap: wrap;
+    flex-wrap: nowrap;
     gap: 2rem;
     margin-top: 0.5rem;
+    overflow-x: auto;
   }
 
   .editor-panel {
@@ -689,6 +690,10 @@
     border: 1px solid #eef2ff;
     display: flex;
     flex-direction: column;
+    position: sticky;
+    top: 20px;
+    max-height: calc(100vh - 80px);
+    overflow-y: auto;
   }
 
   .images-grid {