Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize ProjectItem style #856

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion spx-gui/src/components/project/ProjectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const creationTime = computed(() => dayjs(props.projectData.cTime).format('YYYY.
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
Copy link
Collaborator Author

@nighca nighca Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在名字太长的时候给名字和 UIIcon 之间留点空,宽度参考 UIIcon 与右边缘间的 padding

}
}

Expand All @@ -147,10 +148,13 @@ const creationTime = computed(() => dayjs(props.projectData.cTime).format('YYYY.
padding: 10px 10px 8px;
}

.name-container {
margin-bottom: 4px;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name-container 中包含 name & UIIcon,margin 加在 name 上的话会导致 name 跟 UIIcon 对不齐

}

.name {
font-size: 16px;
line-height: 24px;
margin-bottom: 4px;
}

.creation-time {
Expand Down
Loading