Skip to content

Commit ef513dd

Browse files
committed
comments update 15
1 parent e80e37b commit ef513dd

1 file changed

Lines changed: 21 additions & 17 deletions

File tree

‎Components/Devices/DeviceAccessPanel.vue‎

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,10 @@ function getUserInitials(name: string) {
517517
}
518518
519519
function getAvatarFallbackStyle(name: string) {
520-
const seed = Array.from(name || props.t('commentAnonymous'))
521-
.reduce((sum, char) => sum + char.charCodeAt(0), 0)
522-
const hue = seed % 360
523-
524520
return {
525-
background: `hsl(${hue} 62% 48%)`,
526-
color: '#fff',
521+
background: '#f4f2ff',
522+
border: '2px solid #e6e2ff',
523+
color: '#3f56c8',
527524
}
528525
}
529526
@@ -909,18 +906,18 @@ onBeforeUnmount(() => {
909906
910907
.device-comment-card__avatar {
911908
align-items: center;
912-
background: linear-gradient(180deg, rgba(126, 135, 255, 0.16), rgba(126, 135, 255, 0.08));
909+
background: #f4f2ff;
913910
border-radius: 999px;
914-
box-shadow: inset 0 0 0 1px rgba(126, 135, 255, 0.16);
915-
color: #4963d3;
911+
border: 2px solid #e6e2ff;
912+
color: #3f56c8;
916913
display: flex;
917-
flex: 0 0 44px;
918-
font-size: 14px;
914+
flex: 0 0 58px;
915+
font-size: 18px;
919916
font-weight: 700;
920-
height: 44px;
917+
height: 58px;
921918
justify-content: center;
922919
overflow: hidden;
923-
width: 44px;
920+
width: 58px;
924921
}
925922
926923
.device-comment-card__avatar > span {
@@ -935,9 +932,9 @@ onBeforeUnmount(() => {
935932
.device-comment-card__avatar img {
936933
display: block;
937934
border-radius: inherit;
938-
height: 44px;
935+
height: 58px;
939936
object-fit: cover;
940-
width: 44px;
937+
width: 58px;
941938
}
942939
943940
.device-comment-card__body {
@@ -960,13 +957,20 @@ onBeforeUnmount(() => {
960957
gap: 8px;
961958
}
962959
960+
.device-comment-card__author-line strong {
961+
font-size: 15px;
962+
font-weight: 600;
963+
line-height: 1.25;
964+
}
965+
963966
.device-comment-card__author-badge {
964967
background: #edf8e8;
965968
border-radius: 999px;
966969
color: #2f8a36;
967-
font-size: 12px;
970+
font-size: 11px;
968971
font-weight: 600;
969-
padding: 4px 10px;
972+
line-height: 1.2;
973+
padding: 4px 12px;
970974
}
971975
972976
.device-comment-card__rating-inline,

0 commit comments

Comments
 (0)