Skip to content

Commit

Permalink
Add: ボイボ寮側のキャラページの呼び方に不明時の表示を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 26, 2024
1 parent db02de9 commit 57df745
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/components/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,10 @@ $dropdown-item-active-background-color: $primary;
border-style: solid;
border-radius: 8px;
text-align: center;

&.unknown {
color: gray;
}
}
}
}
Expand Down
16 changes: 12 additions & 4 deletions src/pages/dormitory/{Character.characterId}.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,28 @@ export default ({
<div className="column description-call-line">
<div className="description-call-one">
<span
className="description-call-text"
className={`description-call-text ${
callNameInfos[selectedCharacterKey][targetCharacterKey]
? ""
: "unknown"
}`}
style={{ borderColor: characterInfo.color }}
>
{callNameInfos[selectedCharacterKey][targetCharacterKey]}
{callNameInfos[selectedCharacterKey][targetCharacterKey] || "?"}
</span>
<Arrow leftOrRight="right" />
</div>
<div className="description-call-one">
<Arrow leftOrRight="left" />
<span
className="description-call-text"
className={`description-call-text ${
callNameInfos[targetCharacterKey][selectedCharacterKey]
? ""
: "unknown"
}`}
style={{ borderColor: characterInfos[targetCharacterKey].color }}
>
{callNameInfos[targetCharacterKey][selectedCharacterKey]}
{callNameInfos[targetCharacterKey][selectedCharacterKey] || "?"}
</span>
</div>
</div>
Expand Down

0 comments on commit 57df745

Please sign in to comment.