Change avatar size var to camelCase, more tweaks

This commit is contained in:
Freeplay 2023-01-07 15:53:51 -05:00
parent 9b57916aee
commit 1760424ec1
6 changed files with 15 additions and 14 deletions

View File

@ -143,6 +143,8 @@ const previewable = (file: misskey.entities.DriveFile): boolean => {
position: relative;
width: 100%;
margin-top: 4px;
border-radius: var(--radius);
overflow: hidden;
&:before {
content: '';

View File

@ -373,7 +373,7 @@ function readPromo() {
line-height: 28px;
}
> .line {
width: var(--avatar-size);
width: var(--avatarSize);
display: flex;
margin-right: 14px;
margin-top: 0;
@ -448,7 +448,7 @@ function readPromo() {
}
> .article {
padding: 28px 32px 10px;
padding: 28px 32px 16px;
cursor: pointer;
@media (pointer: coarse) {
@ -461,8 +461,8 @@ function readPromo() {
flex-shrink: 0;
display: block;
margin: 0 14px 0 0;
width: var(--avatar-size);
height: var(--avatar-size);
width: var(--avatarSize);
height: var(--avatarSize);
position: relative;
top: 0;
left: 0;
@ -627,11 +627,10 @@ function readPromo() {
&.max-width_500px {
font-size: 0.9em;
// --avatar-size: 50px;
}
&.max-width_450px {
--avatar-size: 46px;
--avatarSize: 46px;
> .note-context {
padding-inline: 16px;
margin-top: 0;
@ -664,7 +663,7 @@ function readPromo() {
}
&.max-width_300px {
--avatar-size: 40px;
--avatarSize: 40px;
> .article {
> .main {

View File

@ -414,8 +414,8 @@ if (appearNote.replyId) {
> .avatar {
display: block;
flex-shrink: 0;
width: var(--avatar-size);
height: var(--avatar-size);
width: var(--avatarSize);
height: var(--avatarSize);
}
> .body {

View File

@ -148,10 +148,10 @@ const replies: misskey.entities.Note[] = props.conversation?.filter(item => item
flex-direction: column;
align-items: center;
margin-right: 14px;
width: var(--avatar-size);
width: var(--avatarSize);
> .avatar {
width: var(--avatar-size);
height: var(--avatar-size);
width: var(--avatarSize);
height: var(--avatarSize);
margin: 0;
}
> .line {

View File

@ -2,7 +2,7 @@
<div class="wrmlmaau" :class="{ collapsed, isLong }">
<div class="body">
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
<!-- <MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="ph-arrow-bend-up-left-bold ph-lg"></i></MkA> -->
<MkA v-if="note.replyId" class="reply" :to="`/notes/${note.replyId}`"><i class="ph-arrow-bend-up-left-bold ph-lg"></i></MkA>
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
<MkA v-if="note.renoteId" class="rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
</div>

View File

@ -4,7 +4,7 @@
--radius: 12px;
--marginFull: 16px;
--marginHalf: 10px;
--avatar-size: 48px;
--avatarSize: 48px;
--margin: var(--marginFull);