perf:完善样式

This commit is contained in:
Xwen
2023-12-21 12:56:06 +08:00
parent 7173d854d8
commit af67149851
4 changed files with 1415 additions and 1695 deletions

View File

@@ -3,7 +3,7 @@
<div class="avatar-left"> <div class="avatar-left">
<el-avatar :size="props.size" :src="iconUrl" /> <el-avatar :size="props.size" :src="iconUrl" />
<div v-if="props.isSelf"> <div v-if="props.isSelf" class="avatar-center">
<div class="nick">{{ userInfo.nick }}</div> <div class="nick">{{ userInfo.nick }}</div>
</div> </div>
@@ -20,15 +20,14 @@
<el-tag class="ml-2" type="warning">V8</el-tag> <el-tag class="ml-2" type="warning">V8</el-tag>
<el-tag class="ml-2" type="danger">会员</el-tag> <el-tag class="ml-2" type="danger">会员</el-tag>
</div> </div>
<el-button
v-if="props.showWatching"
type="primary"
size="small"
icon="Plus"
>关注</el-button
>
</div> </div>
<el-button
v-if="props.showWatching"
type="primary"
size="default"
icon="Plus"
>关注</el-button
>
</div> </div>
</template> </template>
<script setup> <script setup>
@@ -110,6 +109,7 @@ const Init = () => {
} }
.info { .info {
flex: 1;
margin-top: 0.6rem; margin-top: 0.6rem;
margin-left: 1rem; margin-left: 1rem;
} }
@@ -123,16 +123,19 @@ const Init = () => {
} }
.avatar { .avatar {
flex: 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.avatar-left { .avatar-left {
display: flex; display: flex;
justify-content: flex-start; justify-content: space-between;
align-items: center; align-items: center;
} }
.avatar-center {
flex: 2;
}
.el-avatar { .el-avatar {
margin-right: 1rem; margin-right: 1rem;
--el-avatar-bg-color: none; --el-avatar-bg-color: none;

View File

@@ -15,6 +15,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
width: 1300px; width: 1300px;
max-width: 1400px;
min-height: 1150px; min-height: 1150px;
} }
</style> </style>

View File

@@ -1,6 +1,5 @@
<template> <template>
<div class="article-box"> <div class="article-box">
<!-- <div style="width: 1200px;"> -->
<el-row :gutter="20" class="top-div"> <el-row :gutter="20" class="top-div">
<el-col :span="5"> <el-col :span="5">
<el-row class="art-info-left"> <el-row class="art-info-left">
@@ -382,7 +381,7 @@ watch(
} }
); );
</script> </script>
<style scoped> <style scoped lang="scss">
.article-box { .article-box {
width: 100%; width: 100%;
height: 100%; height: 100%;

File diff suppressed because it is too large Load Diff