瀏覽代碼

😎优化首页布局

zuohuaijun 2 年之前
父節點
當前提交
d6476ad3cb
共有 2 個文件被更改,包括 6 次插入 和 6 次删除
  1. 1 0
      Web/src/views/home/widgets/components/commit.vue
  2. 5 6
      Web/src/views/home/widgets/index.vue

+ 1 - 0
Web/src/views/home/widgets/components/commit.vue

@@ -72,5 +72,6 @@ onMounted(() => {
 .commit {
 .commit {
 	max-height: 500px;
 	max-height: 500px;
 	overflow: auto;
 	overflow: auto;
+	padding-bottom: 20px;
 }
 }
 </style>
 </style>

+ 5 - 6
Web/src/views/home/widgets/index.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
-	<div style="height: 100vh; display: flex; overflow: hidden">
-		<div class="noticebar">
+	<div style="height: 100vh; overflow: hidden">
+		<div class="noticebar" style="display: flex">
 			<NoticeBar />
 			<NoticeBar />
 			<div class="editlayout">
 			<div class="editlayout">
 				<el-tooltip content="编辑/保存布局" placement="bottom">
 				<el-tooltip content="编辑/保存布局" placement="bottom">
@@ -498,12 +498,11 @@ const close = () => {
 	}
 	}
 }
 }
 .noticebar {
 .noticebar {
-	margin-bottom: 10px;
-	margin-left: 5px;
+	margin: 5px;
 }
 }
 .editlayout {
 .editlayout {
-	top: 15px;
-	right: 10px;
+	top: 17px;
+	right: 22px;
 	position: absolute;
 	position: absolute;
 }
 }
 </style>
 </style>