Explorar o código

enhance: stick sidebar to top

0xJacky %!s(int64=2) %!d(string=hai) anos
pai
achega
cdafc62009
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 1 1
      frontend/package.json
  2. 5 0
      frontend/src/layouts/SideBar.vue

+ 1 - 1
frontend/package.json

@@ -1,7 +1,7 @@
 {
     "name": "nginx-ui-frontend-next",
     "private": true,
-    "version": "1.6.5",
+    "version": "1.6.6",
     "type": "commonjs",
     "scripts": {
         "dev": "vite",

+ 5 - 0
frontend/src/layouts/SideBar.vue

@@ -102,6 +102,11 @@ const visible = computed(() => {
 </template>
 
 <style lang="less">
+.sidebar {
+    position: sticky;
+    top: 0;
+}
+
 .ant-layout-sider-collapsed .logo {
     overflow: hidden;
 }