Compare commits

...

13 Commits

Author SHA1 Message Date
tim
425fc7d2b1 fix: 移动端头像显示问题 #1023 2025-09-24 16:57:42 +08:00
Tim
2b5f6f2208 Merge pull request #1022 from nagisa77/feature/user_list_and_avatar
Feature/user list and avatar
2025-09-24 01:51:51 +08:00
tim
bda377336d fix: 优化一些头像属性 2025-09-24 01:51:02 +08:00
tim
77507f7b18 Revert "style: enhance BaseUserAvatar presentation"
This reverts commit 229439aa05.
2025-09-24 01:38:41 +08:00
Tim
a39f2f7c00 Merge pull request #1021 from nagisa77/codex/improve-baseuseravatar-styling-ok22do
style: enhance BaseUserAvatar presentation
2025-09-24 01:31:46 +08:00
tim
612881f1b1 Revert "refine BaseUserAvatar styling"
This reverts commit c68c5985f6.
2025-09-24 01:31:05 +08:00
Tim
05c7bc18d7 Merge pull request #1020 from nagisa77/codex/improve-baseuseravatar-styling-z7f617
Enhance BaseUserAvatar aesthetics
2025-09-24 01:23:25 +08:00
Tim
c68c5985f6 refine BaseUserAvatar styling 2025-09-24 01:23:12 +08:00
tim
7d44791011 Revert "feat: refresh base user avatar styling"
This reverts commit 4b8229b0a1.
2025-09-24 01:22:50 +08:00
Tim
15b992b949 Merge pull request #1019 from nagisa77/codex/improve-baseuseravatar-styling
feat: refresh base user avatar styling
2025-09-24 01:21:29 +08:00
Tim
4b8229b0a1 feat: refresh base user avatar styling 2025-09-24 01:21:12 +08:00
Tim
dc13b2941f Merge pull request #1016 from nagisa77/feature/vditor_layout
fix: 移动端--频道--表情无法显示完全 #994
2025-09-23 23:48:59 +08:00
tim
13c250d392 fix: 移动端--频道--表情无法显示完全 #994 2025-09-23 23:48:31 +08:00
4 changed files with 17 additions and 108 deletions

View File

@@ -108,7 +108,6 @@ body {
.vditor-toolbar--pin {
top: calc(var(--header-height) + 1px) !important;
z-index: 20;
}
.vditor-panel {
@@ -134,26 +133,6 @@ body {
animation: spin 1s linear infinite;
}
/* .vditor {
--textarea-background-color: transparent;
border: none !important;
box-shadow: none !important;
}
.vditor-reset {
color: var(--text-color);
}
.vditor-toolbar {
background: transparent !important;
border: none !important;
box-shadow: none !important;
} */
/* .vditor-toolbar {
position: relative !important;
} */
/*************************
* Markdown 渲染样式
*************************/
@@ -333,10 +312,6 @@ body {
min-height: 100px;
}
.vditor-toolbar {
overflow-x: auto;
}
.about-content h1,
.info-content-text h1 {
font-size: 20px;
@@ -354,8 +329,8 @@ body {
margin-bottom: 3px;
}
.vditor-toolbar--pin {
top: 0 !important;
.vditor-panel {
min-width: 330px;
}
.about-content li,
@@ -367,11 +342,6 @@ body {
line-height: 1.5;
}
.vditor-panel {
position: relative;
min-width: 0;
}
.d2h-file-name {
font-size: 14px !important;
}

View File

@@ -97,33 +97,24 @@ function onError() {
<style scoped>
.base-user-avatar {
--base-avatar-ring-width: var(--avatar-ring-width, 1.5px);
--base-avatar-ring: var(--avatar-ring, linear-gradient(135deg, #6366f1, #ec4899));
--base-avatar-surface: var(
--avatar-surface,
var(--avatar-placeholder-color, rgba(255, 255, 255, 0.88))
);
--base-avatar-shadow: var(--avatar-shadow, 0 12px 30px -18px rgba(15, 23, 42, 0.55));
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
background-color: var(--avatar-placeholder-color, #f0f0f0);
/* 先用box-sizing: border-box保证加border后宽高不变圆形不变形 */
box-sizing: border-box;
color: inherit;
border-radius: 50%;
border: var(--base-avatar-ring-width) solid transparent;
background:
var(--base-avatar-surface) padding-box,
var(--base-avatar-ring) border-box;
background-clip: padding-box, border-box;
background-origin: border-box;
box-shadow: var(--base-avatar-shadow);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
filter 0.25s ease;
border: 1.5px solid var(--normal-border-color);
transition: all 0.6s ease;
}
.base-user-avatar:hover {
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
transform: scale(1.05);
}
.base-user-avatar:active {
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.base-user-avatar.is-rounded {
@@ -131,7 +122,7 @@ function onError() {
}
.base-user-avatar:not(.is-rounded) {
border-radius: var(--avatar-square-radius, 0);
border-radius: 0;
}
.base-user-avatar-img {
@@ -139,51 +130,5 @@ function onError() {
height: 100%;
object-fit: cover;
display: block;
border-radius: inherit;
position: relative;
z-index: 1;
transition:
transform 0.25s ease,
filter 0.25s ease;
backface-visibility: hidden;
}
.base-user-avatar:hover,
.base-user-avatar:focus-visible {
transform: translateY(-1px) scale(1.02);
box-shadow: 0 18px 35px -20px rgba(15, 23, 42, 0.65);
}
.base-user-avatar:focus-visible {
outline: 2px solid rgba(96, 165, 250, 0.6);
outline-offset: 3px;
}
.base-user-avatar:active {
transform: translateY(0) scale(0.99);
}
.base-user-avatar:hover .base-user-avatar-img,
.base-user-avatar:focus-visible .base-user-avatar-img {
transform: scale(1.03);
filter: saturate(1.08);
}
@media (prefers-reduced-motion: reduce) {
.base-user-avatar,
.base-user-avatar-img {
transition: none;
}
.base-user-avatar:hover,
.base-user-avatar:focus-visible,
.base-user-avatar:active {
transform: none;
}
.base-user-avatar:hover .base-user-avatar-img,
.base-user-avatar:focus-visible .base-user-avatar-img {
transform: none;
}
}
</style>

View File

@@ -159,12 +159,6 @@ export default {
border: 1px solid var(--border-color);
border-radius: 8px;
}
.vditor {
min-height: 50px;
max-height: 150px;
}
.message-bottom-container {
display: flex;
flex-direction: row;

View File

@@ -85,7 +85,7 @@
</div>
<div class="article-member-avatars-container">
<div v-for="member in article.members">
<div v-for="member in article.members" class="article-member-avatar-item">
<BaseUserAvatar
class="article-member-avatar-item-img"
:src="member.avatar"