Skip to content

Commit

Permalink
remove more flags #208
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Apr 19, 2024
1 parent 02978a3 commit a1b1a33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/components/landing_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,17 @@ function Tile({gameId, data}: {gameId: string, data: GameTile|undefined}) {
<td>{t("Levels")}</td>
<td>{data.levels}</td>
</tr>
<tr>
<tr className="languages">
<td>{t("Language")}</td>

<td>
{data.languages.map((lang) => {
let langOpt = lean4gameConfig.languages.find((e) => e.iso == lang)
return <ReactCountryFlag key={`flag-${lang}`} title={langOpt?.name} countryCode={langOpt?.flag} className="emojiFlag"/>

if (lean4gameConfig.useFlags) {
return <ReactCountryFlag key={`flag-${lang}`} title={langOpt?.name} countryCode={langOpt?.flag} className="emojiFlag"/>
} else {
return <span title={langOpt?.name}>{lang}</span>
}
})}
</td>
</tr>
Expand Down
4 changes: 4 additions & 0 deletions client/src/css/landing_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,7 @@ footer .link {
margin-right: calc(50% - 650px);
}
}

.info .languages span + span {
margin-left: .5em;
}

0 comments on commit a1b1a33

Please sign in to comment.