From af3cb98fa0866ee9333c24bb2e485641f8d83991 Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 10 Jul 2023 16:47:45 +0800 Subject: [PATCH] style: show the full description of dropdown menus --- assets/hb/modules/header/scss/_header.scss | 4 ++-- layouts/partials/hb/modules/header/submenu.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/hb/modules/header/scss/_header.scss b/assets/hb/modules/header/scss/_header.scss index 679696df..8c2a0a76 100644 --- a/assets/hb/modules/header/scss/_header.scss +++ b/assets/hb/modules/header/scss/_header.scss @@ -34,9 +34,9 @@ $hb-header-margin-bottom: 2rem; .dropdown-item-desc { font-size: 0.8rem; max-width: 280px; - overflow: hidden; - text-overflow: ellipsis; opacity: 0.7; + width: max-content; + word-break: keep-all; } } diff --git a/layouts/partials/hb/modules/header/submenu.html b/layouts/partials/hb/modules/header/submenu.html index 266c17b4..3e51d5c9 100644 --- a/layouts/partials/hb/modules/header/submenu.html +++ b/layouts/partials/hb/modules/header/submenu.html @@ -26,7 +26,7 @@ {{- $menu.Name -}} {{- with $menu.Params.description }} - + {{- end }} {{- $menu.Post -}}