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