fix(frontend): converge scenario 2601 legacy UI

This commit is contained in:
2026-08-04 05:29:18 +00:00
parent 9cfeaed3fe
commit 4113d81ba2
33 changed files with 1944 additions and 492 deletions
@@ -26,6 +26,10 @@ const emit = defineEmits<{
}>();
const nameColor = computed(() => (props.npcState !== null ? getNpcColor(props.npcState) : undefined));
const displayName = computed(() => {
const name = props.name ?? '-';
return (props.npcState ?? 0) > 0 && !/^[ⓜⓝ]/u.test(name) ? `${name}` : name;
});
const handleClick = () => {
if (props.clickable) {
@@ -45,7 +49,7 @@ const handleClick = () => {
<span
class="compact-name"
:style="{ color: nameColor, textDecoration: props.isMe ? 'underline' : undefined }"
>{{ props.name ?? '-' }}</span
>{{ displayName }}</span
>
<span class="compact-meta"
><span>{{ props.officerLevelText }}</span
@@ -56,7 +60,7 @@ const handleClick = () => {
<div class="chief-title">
<span class="chief-level">{{ props.officerLevelText }}</span>
<span class="chief-name" :style="{ color: nameColor }">
{{ props.name ?? '-' }}
{{ displayName }}
</span>
</div>
<span v-if="props.isMe" class="chief-me">ME</span>