Skip to content

Commit

Permalink
저기서도 졸리다고 하려고?
Browse files Browse the repository at this point in the history
  • Loading branch information
HotoRas committed Sep 22, 2024
1 parent 8265f35 commit 0449011
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions packages/backend/src/core/AvatarDecorationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class AvatarDecorationService implements OnApplicationShutdown {
return;
}

const instanceHost = instance?.host;
const instanceHost = instance.host;
const decorationApiUrl = `https://${instanceHost}/api/get-avatar-decorations`;
const allRes = await this.httpRequestService.send(decorationApiUrl, {
method: 'POST',
Expand All @@ -163,8 +163,8 @@ export class AvatarDecorationService implements OnApplicationShutdown {
const updates = {} as Partial<MiUser>;
updates.avatarDecorations = [];
for (const avatarDecoration of userAvatarDecorations) {
let name;
let description;
let name: string;
let description: string;
const avatarDecorationId = avatarDecoration.id;
for (const decoration of allDecorations) {
if (decoration.id === avatarDecorationId) {
Expand All @@ -178,8 +178,8 @@ export class AvatarDecorationService implements OnApplicationShutdown {
remoteId: avatarDecorationId,
});
const decorationData = {
name: name,
description: description,
name: name!,
description: description!,
url: this.getProxiedUrl(avatarDecoration.url as string, 'static'),
remoteId: avatarDecorationId,
host: userHost,
Expand Down
44 changes: 22 additions & 22 deletions packages/frontend/src/ui/_common_/stream-indicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only

<template>
<div v-if="hasDisconnected && defaultStore.state.serverDisconnectedBehavior === 'quiet'" :class="$style.root" class="_panel _shadow" @click="resetDisconnected">
<div><i class="ti ti-alert-triangle"></i> {{ i18n.ts.disconnectedFromServer }}</div>
<div class="_mk_reload_dialog"><i class="ti ti-alert-triangle"></i> {{ i18n.ts.disconnectedFromServer }}</div>
<div :class="$style.command" class="_buttons">
<MkButton small primary @click="reload">{{ i18n.ts.reload }}</MkButton>
<MkButton small>{{ i18n.ts.doNothing }}</MkButton>
Expand Down Expand Up @@ -61,31 +61,31 @@ onUnmounted(() => {
}

._panel {
// 유즈 에러화면 (기본값)
padding-top: 8px;
// 유즈 에러화면 (!important 파티)
padding-top: 8px !important;

.ti-alert-triangle {
display: inline-block;
&::before {
content: "";
display: inline-block;
background-image: url('https://data.nekoplanet.xyz/nekoplanet-storage/misskey/9ef374e9-8e6c-40f3-8aec-67e2944f10d9.webp');
background-size: 42px 37px;
width: 42px; height: 37px;
vertical-align: middle;
transform: scale(1.4);
>div._mk_reload_dialog {
font-size: 0 !important;
text-align: center !important;
&:after {
display: inline-block !important;
content: "너무 졸려요..." !important;
margin-left: 100px !important;
vertical-align: middle !important;
font-size: 14px !important;
}
}

>div:nth-child(1) {
font-size: 0;
text-align: center;
&:after {
.ti-alert-triangle {
display: inline-block;
content: "너무 졸려요...";
margin-left: 100px;
vertical-align: middle;
font-size: 14px;
&::before {
content: "" !important;
display: inline-block !important;
background-image: url('https://data.nekoplanet.xyz/nekoplanet-storage/misskey/9ef374e9-8e6c-40f3-8aec-67e2944f10d9.webp') !important;
background-size: 42px 37px !important;
width: 42px; height: 37px !important;
vertical-align: middle !important;
transform: scale(1.4) !important;
}
}
}
}
Expand Down

0 comments on commit 0449011

Please sign in to comment.