diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-06 16:16:22 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-06 16:16:22 +0900 |
| commit | 1d79fc9092bd658764868d3f02ed4a165b43cfcc (patch) | |
| tree | f907055136c2dcf2c430fb2e17ced4899ab35982 /packages/frontend/src | |
| parent | refactor(frontend): η©Ί/γ¨γ©γΌη΅ζ葨瀺γγ³γ³γγΌγγ³γε (#15... (diff) | |
| download | misskey-1d79fc9092bd658764868d3f02ed4a165b43cfcc.tar.gz misskey-1d79fc9092bd658764868d3f02ed4a165b43cfcc.tar.bz2 misskey-1d79fc9092bd658764868d3f02ed4a165b43cfcc.zip | |
π¨
Diffstat (limited to 'packages/frontend/src')
| -rw-r--r-- | packages/frontend/src/components/global/MkResult.vue | 29 | ||||
| -rw-r--r-- | packages/frontend/src/pages/not-found.vue | 2 |
2 files changed, 26 insertions, 5 deletions
diff --git a/packages/frontend/src/components/global/MkResult.vue b/packages/frontend/src/components/global/MkResult.vue index 51cf8a860a..6990d69bd3 100644 --- a/packages/frontend/src/components/global/MkResult.vue +++ b/packages/frontend/src/components/global/MkResult.vue @@ -4,10 +4,29 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<div :class="[$style.root]" class="_gaps"> +<div :class="[$style.root]" class="_gaps_m"> <img v-if="type === 'empty' && instance.infoImageUrl" :src="instance.infoImageUrl" draggable="false" :class="$style.img"/> - <i v-else-if="type === 'empty'" class="ti ti-info-circle" :class="$style.icon"></i> - <div>{{ props.text ?? (type === 'empty' ? i18n.ts.nothing : type === 'notFound' ? i18n.ts.notFound : null) }}</div> + <svg v-else-if="type === 'empty'" :class="$style.icon" viewBox="0 0 128 128" style="stroke-linecap:round;"> + <path d="M64,0C99.323,0 128,28.677 128,64C128,99.323 99.323,128 64,128C28.677,128 0,99.323 0,64C0,28.677 28.677,0 64,0ZM64,8C33.093,8 8,33.093 8,64C8,94.907 33.093,120 64,120C94.907,120 120,94.907 120,64C120,33.093 94.907,8 64,8Z" style="fill:currentColor;"/> + <g transform="matrix(1,0,0,1,0,8)"> + <path d="M64,88L64,48" style="fill:none;stroke:currentColor;stroke-width:8px;"/> + </g> + <g transform="matrix(1,0,0,1,-4,4)"> + <circle cx="68" cy="28" r="4" style="fill:currentColor;"/> + </g> + </svg> + <img v-if="type === 'notFound' && instance.notFoundImageUrl" :src="instance.notFoundImageUrl" draggable="false" :class="$style.img"/> + <svg v-else-if="type === 'notFound'" :class="$style.icon" viewBox="0 0 128 128" style="stroke-linecap:round;"> + <path d="M64,0C99.323,0 128,28.677 128,64C128,99.323 99.323,128 64,128C28.677,128 0,99.323 0,64C0,28.677 28.677,0 64,0ZM64,8C33.093,8 8,33.093 8,64C8,94.907 33.093,120 64,120C94.907,120 120,94.907 120,64C120,33.093 94.907,8 64,8Z" style="fill:currentColor;"/> + <g transform="matrix(1,0,0,1,0,8)"> + <path d="M64,72L64,56C72.533,55.777 80,49.333 80,40C80,31.667 73.333,24 64,24C55.667,24 47.556,31.667 48,40" style="fill:none;stroke:currentColor;stroke-width:8px;"/> + </g> + <g transform="matrix(1,0,0,1,-4,68)"> + <circle cx="68" cy="28" r="4" style="fill:currentColor;"/> + </g> + </svg> + + <div style="opacity: 0.7;">{{ props.text ?? (type === 'empty' ? i18n.ts.nothing : type === 'notFound' ? i18n.ts.notFound : null) }}</div> <slot></slot> </div> </template> @@ -38,7 +57,9 @@ const props = defineProps<{ } .icon { - font-size: 24px; + width: 64px; + height: 64px; margin: 0 auto; + color: var(--MI_THEME-accent); } </style> diff --git a/packages/frontend/src/pages/not-found.vue b/packages/frontend/src/pages/not-found.vue index 305518f64a..ba871420fe 100644 --- a/packages/frontend/src/pages/not-found.vue +++ b/packages/frontend/src/pages/not-found.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<div> +<div style="align-content: center; height: 100cqh;"> <MkResult type="notFound" :text="i18n.ts.notFoundDescription"/> </div> </template> |