Skip to content

Commit

Permalink
[update] adapt chevron position according to language name
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Jun 5, 2022
1 parent f1e5f6c commit 3291280
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/components/common/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as localizations from "../../localizations";

import { IconChevronUp } from "@tabler/icons";
import { useLanguage } from "contexts/language";
import { useRef } from "react";

export const Footer = () => {
const { strings, setLanguage } = useLanguage();
Expand All @@ -17,7 +16,7 @@ export const Footer = () => {
})
}
</select>
<IconChevronUp className="-ml-7" />
<IconChevronUp className={`-ml-${10 - strings.name.length}`} />
</div>
</div>
</footer>
Expand Down

0 comments on commit 3291280

Please sign in to comment.