Skip to content

Commit

Permalink
Website: Rounded flags (#983)
Browse files Browse the repository at this point in the history
* Rounded flags

* Remove cover objet fit
  • Loading branch information
dnhn authored Dec 14, 2024
1 parent 65fc9fd commit 4db54e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Children, PropsWithChildren, useState } from 'react';
* We use the files from GitHub instead of the package so that donations from new countries are automatically supported.
*/
const getFlagImageURL = (country: string) => {
return `https://raw.githubusercontent.com/lipis/flag-icons/a87d8b256743c9b0df05f20de2c76a7975119045/flags/4x3/${country.toLowerCase()}.svg`;
return `https://raw.githubusercontent.com/lipis/flag-icons/a87d8b256743c9b0df05f20de2c76a7975119045/flags/1x1/${country.toLowerCase()}.svg`;
};

type CountryCardProps = {
Expand All @@ -24,7 +24,7 @@ export function CountryCard({ country, translations }: CountryCardProps) {
<li>
<Card>
<CardContent className="flex min-w-0 gap-x-4 py-8">
<img className="h-12 w-12 flex-none" src={getFlagImageURL(country)} alt="" />
<img className="size-12 flex-none rounded-full" src={getFlagImageURL(country)} alt="" />
<div className="min-w-0 flex-auto">
<Typography weight="medium" size="lg">
{translations.country}
Expand Down

0 comments on commit 4db54e4

Please sign in to comment.