perf: 优化顶部布局

This commit is contained in:
奔跑的面条 2024-04-17 10:15:47 +08:00
parent d7c4090c96
commit 3bfbee4cc1

View File

@ -38,18 +38,16 @@ const isProject = computed(() => {
</script>
<style lang="scss" scoped>
$min-width: 520px;
@include go(header) {
&-box {
display: grid;
grid-template-columns: repeat(3, 33%);
display: flex;
justify-content: space-between;
&.is-project {
grid-template-columns: none;
}
.header-item {
display: flex;
align-items: center;
min-width: $min-width;
&.left {
justify-content: start;
}