Automatisk anpassning av dropdown-meny till textbredden på innehållet
This commit is contained in:
@@ -94,9 +94,10 @@ button[onclick="window.frontendApi.sendMessage()"]:active {
|
|||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
min-width: 160px;
|
/* min-width: 160px; */
|
||||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
width: auto; /* Add this property */
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content a {
|
.dropdown-content a {
|
||||||
@@ -107,7 +108,7 @@ button[onclick="window.frontendApi.sendMessage()"]:active {
|
|||||||
display: block;
|
display: block;
|
||||||
font-size: 0.7rem; /* Decrease font size relative to root element */
|
font-size: 0.7rem; /* Decrease font size relative to root element */
|
||||||
line-height: 0.5; /* Decrease line height to reduce spacing */
|
line-height: 0.5; /* Decrease line height to reduce spacing */
|
||||||
|
white-space: nowrap; /* Add this property */
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content a:hover {background-color: #f1f1f1;}
|
.dropdown-content a:hover {background-color: #f1f1f1;}
|
||||||
|
|||||||
Reference in New Issue
Block a user