diff mbox series

[htdocs] menu: do not break links in the middle

Message ID 20231220031351.317-1-vapier@gentoo.org
State New
Headers show
Series [htdocs] menu: do not break links in the middle | expand

Commit Message

Mike Frysinger Dec. 20, 2023, 3:13 a.m. UTC
When links start to wrap, the browser might wrap in the middle of a
link which can be pretty confusing.  For example, "Report a bug" may
break into "Report" at the end of one line and "a bug" at the start
of the next line.  Disable this for spacing within a link so browsers
wrap the entire link or none at all.
---
 glibc.css | 1 +
 1 file changed, 1 insertion(+)

Comments

Carlos O'Donell Feb. 16, 2024, 7:28 p.m. UTC | #1
On 12/19/23 22:13, Mike Frysinger wrote:
> When links start to wrap, the browser might wrap in the middle of a
> link which can be pretty confusing.  For example, "Report a bug" may
> break into "Report" at the end of one line and "a bug" at the start
> of the next line.  Disable this for spacing within a link so browsers
> wrap the entire link or none at all.
> ---

LGTM. Applied.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

>  glibc.css | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/glibc.css b/glibc.css
> index bf71bb4b73e9..40f6d6e2f8d7 100644
> --- a/glibc.css
> +++ b/glibc.css
> @@ -84,6 +84,7 @@ ul.menu a:hover, ul.menu a:active {
>  
>  ul.menu li {
>  	display:inline;
> +	white-space: pre;
>  }
>  
>  #banner {
diff mbox series

Patch

diff --git a/glibc.css b/glibc.css
index bf71bb4b73e9..40f6d6e2f8d7 100644
--- a/glibc.css
+++ b/glibc.css
@@ -84,6 +84,7 @@  ul.menu a:hover, ul.menu a:active {
 
 ul.menu li {
 	display:inline;
+	white-space: pre;
 }
 
 #banner {