From ab9bb1324c4de3d6e6376872fdea09844ad42ed1 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Mon, 5 Aug 2024 15:38:15 +0200 Subject: [PATCH] =?UTF-8?q?Lagt=20till=20dropdown-meny=20f=C3=B6r=20val=20?= =?UTF-8?q?av=20endpoint=20och=20LLM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smartassist/src/static/css/clientstyle.css | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/smartassist/src/static/css/clientstyle.css b/smartassist/src/static/css/clientstyle.css index dac4374..df9c3d2 100644 --- a/smartassist/src/static/css/clientstyle.css +++ b/smartassist/src/static/css/clientstyle.css @@ -26,6 +26,7 @@ h1 { resize: both; /* Allow resizing vertically */ border: 1px solid #ccc; /* Add a thin grey border around chatbox */ margin-bottom: 20px; /* Add some space between chatbox and userInput */ + font-size: 14px; /* Decrease font size to 14 pixels */ } .message { @@ -83,3 +84,34 @@ button[onclick="window.frontendApi.sendMessage()"]:active { background-color: #6f6f6f; /* Dark Grey when clicked */ } + +.dropdown { + position: relative; + display: inline-block; + } + + .dropdown-content { + display: none; + position: absolute; + background-color: #f9f9f9; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 1; + } + + .dropdown-content a { + color: black; + /* padding: 12px 16px; */ + padding: 6px 8px; + text-decoration: none; + display: block; + font-size: 0.7rem; /* Decrease font size relative to root element */ + line-height: 0.5; /* Decrease line height to reduce spacing */ + + } + + .dropdown-content a:hover {background-color: #f1f1f1;} + + .dropdown:hover .dropdown-content { + display: block; + }