فهرست منبع

fix: 修改nav样式不生效的问题

曾坤森 3 ماه پیش
والد
کامیت
fd94e102be
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 0 1
      src/components/navbar/index.vue
  2. 2 0
      src/layout/default-layout.vue

+ 0 - 1
src/components/navbar/index.vue

@@ -283,7 +283,6 @@ const toggleCollapse = () => {
 .navbar {
   display: flex;
   justify-content: space-between;
-  justify-self: end;
   height: 100%;
   background-color: var(--color-bg-2);
   border-bottom: 1px solid var(--color-border);

+ 2 - 0
src/layout/default-layout.vue

@@ -134,6 +134,8 @@ onMounted(() => {
   top: 0;
   left: 0;
   z-index: 99;
+  display: flex;
+  justify-content: end;
   width: 100%;
   height: @nav-size-height;
   background-color: white;