Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: ボイボ寮側のキャラページの呼び方に不明時の表示を追加 #230

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading