クラスにまとめた

This commit is contained in:
ikasoba 2023-12-18 21:16:09 +09:00
parent ae481b05a9
commit 0f2523df41
1 changed files with 14 additions and 12 deletions

View File

@ -40,18 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkA>
<div
v-if="channel.lastNotedAt && (channel.isFavorited || channel.isFollowing) && (!lastReadedAt || Date.parse(channel.lastNotedAt) > lastReadedAt)"
style="
position: absolute;
top: 0;
right: 0;
transform: translate(25%, -25%);
background-color: var(--accent);
border: solid var(--bg) 4px;
border-radius: 100%;
width: 1.5rem;
height: 1.5rem;
aspect-ratio: 1 / 1;
"
class="indicator"
></div>
</div>
</template>
@ -202,4 +191,17 @@ const bannerStyle = computed(() => {
}
}
.indicator {
position: absolute;
top: 0;
right: 0;
transform: translate(25%, -25%);
background-color: var(--accent);
border: solid var(--bg) 4px;
border-radius: 100%;
width: 1.5rem;
height: 1.5rem;
aspect-ratio: 1 / 1;
}
</style>