Fix context menu css

This commit is contained in:
Bill 2022-03-21 02:48:35 -04:00
parent d9f08ede7c
commit 826fe4ac26

View File

@ -1,6 +1,4 @@
.nitro-context-menu { .nitro-context-menu {
width: 125px;
max-width: 125px;
padding: 2px; padding: 2px;
background-color: $gable-green; background-color: $gable-green;
border: 2px solid rgba($white, 0.5); border: 2px solid rgba($white, 0.5);
@ -22,19 +20,23 @@
font-size: 18px; font-size: 18px;
} }
&:not(.name-only):after { &:not(.name-only) {
content: ""; min-width: 125px;
position: absolute;
bottom: -7px; &:after {
left: 0; content: "";
right: 0; position: absolute;
margin: auto; bottom: -7px;
height: 10px; left: 0;
width: 10px; right: 0;
transform: rotate(45deg); margin: auto;
border-color: transparent rgba($white, 0.5) rgba($white, 0.5) transparent; height: 10px;
border-style: solid; width: 10px;
border-width: 5px; transform: rotate(45deg);
border-color: transparent rgba($white, 0.5) rgba($white, 0.5) transparent;
border-style: solid;
border-width: 5px;
}
} }
.menu-header { .menu-header {