Skip to content

Commit f4fa906

Browse files
committed
feat: 添加CommonHeader和CommonFooter组件,调整样式以优化布局
1 parent 8d6189c commit f4fa906

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

src/assets/css/adventure/landscape.less

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,12 @@
637637
.r(10px);
638638
background-color: white;
639639
padding: 10px 15px;
640-
.pa();
641-
left: 50%;
642-
top: 30px;
643-
transform: translateX(-50%);
640+
// .pa();
641+
// left: 50%;
642+
// top: 30px;
643+
// transform: translateX(-50%);
644+
width: max-content;
645+
margin: 0 auto;
644646
display: flex;
645647
align-items: center;
646648
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);

src/views/adventure/landscape.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<CommonNav :force-show="true"></CommonNav>
3+
<CommonHeader></CommonHeader>
34
<div class="m-body">
45
<!-- <a class="u-go_back" href="/adventure">返回主页</a> -->
56
<template v-if="!isLogin">
@@ -82,6 +83,8 @@
8283
</div>
8384
</template>
8485
</div>
86+
<CommonFooter></CommonFooter>
87+
8588
</template>
8689

8790
<script>

src/views/wiki/overview.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,7 @@ export default {
736736
}
737737
738738
.m-info-avatar {
739-
max-width: 205px;
740-
width: 205px;
739+
width: 200px;
741740
height: 200px;
742741
position: relative;
743742
@@ -765,8 +764,8 @@ export default {
765764
.u-avatar-img {
766765
position: absolute;
767766
z-index: 1;
768-
width: 175px;
769-
height: 175px;
767+
width: 150px;
768+
height: 150px;
770769
border-radius: 100%;
771770
overflow: hidden;
772771
left: 50%;

0 commit comments

Comments
 (0)