Make admin CMS translation language tabs horizontally scrollable
Local Build and Deploy / deploy (push) Successful in 1m4s
Local Build and Deploy / deploy (push) Successful in 1m4s
This commit is contained in:
1 parent
187e008914
commit
7b85f8f3db
1 file changed
+2
-1
@@ -120,12 +120,13 @@ export function TranslationsClient({ localeContents }: Props) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex gap-2 flex-wrap">
|
<div className="flex gap-2 flex-wrap">
|
||||||
<div className="flex gap-1">
|
<div className="flex gap-1 overflow-x-auto pb-1 max-w-full">
|
||||||
{LOCALES.map(({ code, label }) => (
|
{LOCALES.map(({ code, label }) => (
|
||||||
<Button
|
<Button
|
||||||
key={code}
|
key={code}
|
||||||
variant={activeLang === code ? "default" : "outline"}
|
variant={activeLang === code ? "default" : "outline"}
|
||||||
size="sm"
|
size="sm"
|
||||||
|
className="shrink-0"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setActiveLang(code);
|
setActiveLang(code);
|
||||||
setPage(1);
|
setPage(1);
|
||||||
|
|||||||
Reference in new issue
Block a user