From 7f557fadd6d7edeeef13647a3358dd5fa5592004 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Tue, 6 Aug 2024 00:46:19 +0200 Subject: [PATCH] =?UTF-8?q?Automatisk=20anpassning=20av=20dropdown-meny=20?= =?UTF-8?q?till=20textbredden=20p=C3=A5=20inneh=C3=A5llet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smartassist/src/static/css/clientstyle.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smartassist/src/static/css/clientstyle.css b/smartassist/src/static/css/clientstyle.css index df9c3d2..0e78ccb 100644 --- a/smartassist/src/static/css/clientstyle.css +++ b/smartassist/src/static/css/clientstyle.css @@ -94,9 +94,10 @@ button[onclick="window.frontendApi.sendMessage()"]:active { display: none; position: absolute; background-color: #f9f9f9; - min-width: 160px; + /* min-width: 160px; */ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; + width: auto; /* Add this property */ } .dropdown-content a { @@ -107,7 +108,7 @@ button[onclick="window.frontendApi.sendMessage()"]:active { display: block; font-size: 0.7rem; /* Decrease font size relative to root element */ line-height: 0.5; /* Decrease line height to reduce spacing */ - + white-space: nowrap; /* Add this property */ } .dropdown-content a:hover {background-color: #f1f1f1;}