Skip to content

Commit 37916f7

Browse files
committed
Fix issue #490: characters in header cannot be displayed horizontally
1 parent 21830b3 commit 37916f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/widgets/Header.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
9090
<li class={links?.length ? 'dropdown' : ''}>
9191
{links?.length ? (
9292
<>
93-
<button type="button" class="hover:text-link dark:hover:text-white px-4 py-3 flex items-center">
93+
<button type="button" class="hover:text-link dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap">
9494
{text}{' '}
9595
<Icon name="tabler:chevron-down" class="w-3.5 h-3.5 ml-0.5 rtl:ml-0 rtl:mr-0.5 hidden md:inline" />
9696
</button>
@@ -113,7 +113,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
113113
) : (
114114
<a
115115
class:list={[
116-
'hover:text-link dark:hover:text-white px-4 py-3 flex items-center',
116+
'hover:text-link dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap',
117117
{ 'aw-link-active': href === currentPath },
118118
]}
119119
href={href}

0 commit comments

Comments
 (0)