GNU bug report logs -
#63720
[PATCH] website: List languages in two columns.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63720 in the body.
You can then email your comments to 63720 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#63720
; Package
guix-patches
.
(Thu, 25 May 2023 15:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 25 May 2023 15:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* website/apps/base/templates/components.scm (navbar): Specify a CSS
class for the languages dropdown list.
* website/static/base/css/navbar.css (languages-dropdown-list): New
rule.
---
The translations dropdown is too long and high. It seems to me
adjusting the number of columns dynamically and limiting the height is
not possible, unless we rewrite dropdowns to use CSS flexbox in <div>
elements instead of lists. Instead, this patch sets a fixed column
number of two, which should be appropriate for the foreseeable future.
Also, there is only one languages dropdown, so this patch could
specify an id and not a new class for the languages dropdown. But a
class works too and works always, so using a class seems better (?).
website/apps/base/templates/components.scm | 3 ++-
website/static/base/css/navbar.css | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm
index 5f4af9c..241c27e 100644
--- a/website/apps/base/templates/components.scm
+++ b/website/apps/base/templates/components.scm
@@ -1,5 +1,5 @@
;;; GNU Guix web site
-;;; Copyright © 2019 Florian Pelz <pelzflorian <at> pelzflorian.de>
+;;; Copyright © 2019, 2023 Florian Pelz <pelzflorian <at> pelzflorian.de>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune <at> gmail.com>
;;; Initially written by sirgazil who waives all
;;; copyright interest on this file.
@@ -501,6 +501,7 @@ manual.
,(menu-dropdown #:label (locale-display-name) #:active-item active-item
#:items
(append
+ (list '(@ (class "languages-dropdown-list")))
(map-in-order
(lambda (ietf-info)
(let ((lingua (car ietf-info))
diff --git a/website/static/base/css/navbar.css b/website/static/base/css/navbar.css
index 974516a..c2dce90 100644
--- a/website/static/base/css/navbar.css
+++ b/website/static/base/css/navbar.css
@@ -117,6 +117,9 @@ label.menu-item {
display: none;
}
+.languages-dropdown-list {
+ columns: 2;
+}
base-commit: c4df5a59a97bce391e1be68dd8b4c1107cce4b23
--
2.39.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63720
; Package
guix-patches
.
(Mon, 05 Jun 2023 12:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 63720 <at> debbugs.gnu.org (full text, mbox):
Hi,
"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de> skribis:
> * website/apps/base/templates/components.scm (navbar): Specify a CSS
> class for the languages dropdown list.
> * website/static/base/css/navbar.css (languages-dropdown-list): New
> rule.
> ---
>
> The translations dropdown is too long and high. It seems to me
> adjusting the number of columns dynamically and limiting the height is
> not possible, unless we rewrite dropdowns to use CSS flexbox in <div>
> elements instead of lists. Instead, this patch sets a fixed column
> number of two, which should be appropriate for the foreseeable future.
>
> Also, there is only one languages dropdown, so this patch could
> specify an id and not a new class for the languages dropdown. But a
> class works too and works always, so using a class seems better (?).
No opinion on this, but two columns sounds like a good idea to me.
Thanks,
Ludo’.
Reply sent
to
"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
:
You have taken responsibility.
(Tue, 06 Jun 2023 06:30:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
:
bug acknowledged by developer.
(Tue, 06 Jun 2023 06:30:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 63720-done <at> debbugs.gnu.org (full text, mbox):
Pushed as a076562297db72b45ac82f7627a23e4be615d558.
Thank you Ludo for confirming the columns number.
Regards,
Florian
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 04 Jul 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 312 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.