Compare commits

...

3 Commits

Author SHA1 Message Date
かっこかり 627c302cd4
Merge 675becdea2 into 42a2ed8b67 2025-05-04 05:57:24 +00:00
kakkokari-gtyih 675becdea2 refactor 2025-05-04 14:19:14 +09:00
kakkokari-gtyih 18c7ac84e1 fix(frontend): Instance Tickerの文字ストロークをSVG描画で復活させる 2025-05-04 14:15:17 +09:00
1 changed files with 26 additions and 1 deletions

View File

@ -6,7 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div :class="$style.root" :style="themeColorStyle">
<img v-if="faviconUrl" :class="$style.icon" :src="faviconUrl"/>
<div :class="$style.name">{{ instanceName }}</div>
<div :class="$style.name">
<svg :class="$style.nameSvg" version="1.1" xmlns="http://www.w3.org/2000/svg">
<text x="0" y="0" :class="$style.nameSvgText">{{ instanceName }}</text>
</svg>
</div>
</div>
</template>
@ -78,10 +82,31 @@ $height: 2ex;
.name {
margin-left: 4px;
height: 100%;
line-height: 1;
font-size: 0.9em;
font-weight: bold;
white-space: nowrap;
overflow: visible;
}
.nameSvg {
width: auto;
height: 100%;
overflow: visible;
}
.nameSvgText {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
text-rendering: optimizeLegibility;
transform: translateY(calc(100% - 2.5px)); // 2.5px
fill: currentColor;
stroke: #000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.5px;
paint-order: stroke fill markers;
}
</style>