Sfoglia il codice sorgente

Change menu position

sbkwgh 8 anni fa
parent
commit
ef183eedca
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/components/MenuButton.vue

+ 2 - 1
src/components/MenuButton.vue

@@ -62,7 +62,6 @@
 			position: absolute;
 			background-color: #fff;
 			width: 10rem;
-			top: calc(100% + 0.25rem);
 			border-radius: 0.125rem;
 			box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.06);
 			z-index: 3;
@@ -73,6 +72,8 @@
 			opacity: 0;
 			margin-top: -1rem;
 			transition: all 0.25s;
+			top: 0.25rem;
+			left: 0;
 
 			@at-root #{&}--show {
 				opacity: 1;