Automatisk anpassning av dropdown-meny till textbredden på innehållet

This commit is contained in:
2024-08-06 00:46:19 +02:00
parent 5ce92a5602
commit 7f557fadd6
+3 -2
View File
@@ -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;}