This commit is contained in:
syuilo 2025-04-17 17:58:43 +09:00
parent 3d4970c79c
commit 07bc5d790a
14 changed files with 25 additions and 31 deletions

View File

@ -155,12 +155,12 @@ function onMousedown(evt: MouseEvent): void {
&.small { &.small {
font-size: 90%; font-size: 90%;
padding: 6px 12px; padding: 8px 12px;
} }
&.large { &.large {
font-size: 100%; font-size: 100%;
padding: 8px 16px; padding: 10px 16px;
} }
&.full { &.full {

View File

@ -191,6 +191,7 @@ function onInputKeydown(evt: KeyboardEvent) {
.icon { .icon {
font-size: 24px; font-size: 24px;
padding: 4px 0;
& + .title { & + .title {
margin-top: 8px; margin-top: 8px;

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<div v-panel :class="$style.root"> <div v-panel :class="$style.root">
<img :class="$style.img" :src="icon"/> <img :class="$style.img" :src="icon"/>
<div :class="$style.text"> <div :class="$style.text" class="_mt">
<slot></slot> <slot></slot>
</div> </div>
</div> </div>

View File

@ -143,7 +143,7 @@ onMounted(() => {
align-items: center; align-items: center;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 12px 10px 12px; padding: 11px 12px 11px 12px;
background: var(--MI_THEME-folderHeaderBg); background: var(--MI_THEME-folderHeaderBg);
-webkit-backdrop-filter: var(--MI-blur, blur(15px)); -webkit-backdrop-filter: var(--MI-blur, blur(15px));
backdrop-filter: var(--MI-blur, blur(15px)); backdrop-filter: var(--MI-blur, blur(15px));

View File

@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div :class="$style.key"> <div :class="$style.key">
<slot name="key"></slot> <slot name="key"></slot>
</div> </div>
<div :class="$style.value" class="_selectable"> <div :class="$style.value" class="_selectable _mt">
<slot name="value"></slot> <slot name="value"></slot>
<button v-if="copy" v-tooltip="i18n.ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="ti ti-copy"></i></button> <button v-if="copy" v-tooltip="i18n.ts.copy" class="_textButton" style="margin-left: 0.5em;" @click="copy_"><i class="ti ti-copy"></i></button>
</div> </div>

View File

@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div> <div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
<MkAvatar :class="[$style.avatar, prefer.s.useStickyIcons ? $style.useSticky : null]" :user="appearNote.user" :link="!mock" :preview="!mock"/> <MkAvatar :class="[$style.avatar, prefer.s.useStickyIcons ? $style.useSticky : null]" :user="appearNote.user" :link="!mock" :preview="!mock"/>
<div :class="$style.main"> <div :class="$style.main">
<MkNoteHeader :note="appearNote" :mini="true"/> <MkNoteHeader :note="appearNote" :mini="true" style="margin: 4px 0;"/>
<MkInstanceTicker v-if="showTicker" :host="appearNote.user.host" :instance="appearNote.user.instance"/> <MkInstanceTicker v-if="showTicker" :host="appearNote.user.host" :instance="appearNote.user.instance"/>
<div style="container-type: inline-size;"> <div style="container-type: inline-size;">
<p v-if="appearNote.cw != null" :class="$style.cw"> <p v-if="appearNote.cw != null" :class="$style.cw">

View File

@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div :class="$style.root"> <div :class="$style.root">
<MkAvatar :class="$style.avatar" :user="note.user" link preview/> <MkAvatar :class="$style.avatar" :user="note.user" link preview/>
<div :class="$style.main"> <div :class="$style.main">
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/> <MkNoteHeader :class="$style.header" :note="note" :mini="true" style="margin: 4px 0;"/>
<div> <div>
<p v-if="note.cw != null" :class="$style.cw"> <p v-if="note.cw != null" :class="$style.cw">
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/> <Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/>

View File

@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="note.channel" :class="$style.colorBar" :style="{ background: note.channel.color }"></div> <div v-if="note.channel" :class="$style.colorBar" :style="{ background: note.channel.color }"></div>
<MkAvatar :class="$style.avatar" :user="note.user" link preview/> <MkAvatar :class="$style.avatar" :user="note.user" link preview/>
<div :class="$style.body"> <div :class="$style.body">
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/> <MkNoteHeader :class="$style.header" :note="note" :mini="true" style="margin: 4px 0;"/>
<div> <div>
<p v-if="note.cw != null" :class="$style.cw"> <p v-if="note.cw != null" :class="$style.cw">
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'"/> <Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'"/>

View File

@ -76,7 +76,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<span v-else-if="notification.type === 'app'">{{ notification.header }}</span> <span v-else-if="notification.type === 'app'">{{ notification.header }}</span>
<MkTime v-if="withTime" :time="notification.createdAt" :class="$style.headerTime"/> <MkTime v-if="withTime" :time="notification.createdAt" :class="$style.headerTime"/>
</header> </header>
<div> <div class="_mt">
<MkA v-if="notification.type === 'reaction' || notification.type === 'reaction:grouped'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)"> <MkA v-if="notification.type === 'reaction' || notification.type === 'reaction:grouped'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
<i class="ti ti-quote" :class="$style.quote"></i> <i class="ti ti-quote" :class="$style.quote"></i>
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/> <Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
@ -296,6 +296,7 @@ function getActualReactedUsersCount(notification: Misskey.entities.Notification)
right: -2px; right: -2px;
width: 20px; width: 20px;
height: 20px; height: 20px;
line-height: 20px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 100%; border-radius: 100%;
background: var(--MI_THEME-panel); background: var(--MI_THEME-panel);
@ -310,73 +311,61 @@ function getActualReactedUsersCount(notification: Misskey.entities.Notification)
} }
.t_follow, .t_followRequestAccepted, .t_receiveFollowRequest { .t_follow, .t_followRequestAccepted, .t_receiveFollowRequest {
padding: 3px;
background: var(--eventFollow); background: var(--eventFollow);
pointer-events: none; pointer-events: none;
} }
.t_renote { .t_renote {
padding: 3px;
background: var(--eventRenote); background: var(--eventRenote);
pointer-events: none; pointer-events: none;
} }
.t_quote { .t_quote {
padding: 3px;
background: var(--eventRenote); background: var(--eventRenote);
pointer-events: none; pointer-events: none;
} }
.t_reply { .t_reply {
padding: 3px;
background: var(--eventReply); background: var(--eventReply);
pointer-events: none; pointer-events: none;
} }
.t_mention { .t_mention {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
.t_pollEnded { .t_pollEnded {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
.t_achievementEarned { .t_achievementEarned {
padding: 3px;
background: var(--eventAchievement); background: var(--eventAchievement);
pointer-events: none; pointer-events: none;
} }
.t_exportCompleted { .t_exportCompleted {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
.t_roleAssigned { .t_roleAssigned {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
.t_login { .t_login {
padding: 3px;
background: var(--eventLogin); background: var(--eventLogin);
pointer-events: none; pointer-events: none;
} }
.t_createToken { .t_createToken {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
.t_chatRoomInvitationReceived { .t_chatRoomInvitationReceived {
padding: 3px;
background: var(--eventOther); background: var(--eventOther);
pointer-events: none; pointer-events: none;
} }
@ -390,6 +379,7 @@ function getActualReactedUsersCount(notification: Misskey.entities.Notification)
display: flex; display: flex;
align-items: baseline; align-items: baseline;
white-space: nowrap; white-space: nowrap;
margin: 4px 0;
} }
.headerName { .headerName {

View File

@ -49,12 +49,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<span v-if="item.icon" class="icon"><i :class="item.icon" class="ti-fw"></i></span> <span v-if="item.icon" class="icon"><i :class="item.icon" class="ti-fw"></i></span>
<span class="text"> <span class="text">
<template v-if="item.isRoot"> <template v-if="item.isRoot">
{{ item.label }} <span class="_mt">{{ item.label }}</span>
</template> </template>
<template v-else> <template v-else>
<span style="opacity: 0.7; font-size: 90%;">{{ item.parentLabels.join(' > ') }}</span> <span style="opacity: 0.7; font-size: 90%;" class="_mt">{{ item.parentLabels.join(' > ') }}</span>
<br> <br>
<span>{{ item.label }}</span> <span class="_mt">{{ item.label }}</span>
</template> </template>
</span> </span>
</MkA> </MkA>
@ -235,7 +235,7 @@ function searchOnKeyDown(ev: KeyboardEvent) {
align-items: center; align-items: center;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 16px 10px 8px; padding: 11px 16px 11px 8px;
border-radius: 9px; border-radius: 9px;
font-size: 0.9em; font-size: 0.9em;

View File

@ -106,8 +106,8 @@ onUnmounted(() => {
.root { .root {
position: absolute; position: absolute;
font-size: 0.8em; font-size: 80%;
padding: 8px 12px; padding: 10px 12px;
box-sizing: border-box; box-sizing: border-box;
text-align: center; text-align: center;
border-radius: 4px; border-radius: 4px;

View File

@ -50,10 +50,10 @@ const props = defineProps<{
align-items: center; align-items: center;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 14px; padding: 12px 14px;
background: var(--MI_THEME-folderHeaderBg); background: var(--MI_THEME-folderHeaderBg);
border-radius: 6px; border-radius: 6px;
font-size: 0.9em; font-size: 90%;
&:hover { &:hover {
text-decoration: none; text-decoration: none;

View File

@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<Mfm <Mfm
v-if="message.text" v-if="message.text"
ref="text" ref="text"
class="_selectable" class="_selectable _mt"
:text="message.text" :text="message.text"
:i="$i" :i="$i"
:nyaize="'respect'" :nyaize="'respect'"

View File

@ -178,8 +178,11 @@ rt {
} }
// one-line text // one-line text
._1t { ._t {
line-height: 1; line-height: 1;
overflow: clip;
white-space: nowrap;
text-overflow: ellipsis;
} }
// multi-line text // multi-line text