Skip to content

Commit 5904632

Browse files
authored
fix: move API URL switcher URLs to title (too long) (#154)
1 parent 895e7ec commit 5904632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/navbar/ApiUrlSwitcher.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ const ApiUrlSwitcher = memo(() => {
4242
setApiUrl(url);
4343
}
4444
}}
45+
title={url}
4546
>
4647
<span className={`btn btn-sm btn-block ${apiUrl === url ? "btn-primary" : "btn-ghost"}`}>
47-
{apiNames[i] && apiNames[i] !== url ? `${apiNames[i]} (${url})` : url}
48+
{apiNames[i] && apiNames[i] !== url ? apiNames[i] : url}
4849
</span>
4950
</li>
5051
))}

0 commit comments

Comments
 (0)