Explorar el Código

fix site message sticky

Michael Wang hace 5 años
padre
commit
bc27480ce3
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/components/MainLayout/SiteMessagePopup.vue

+ 4 - 2
src/components/MainLayout/SiteMessagePopup.vue

@@ -85,9 +85,11 @@ export default {
 
 <style scoped>
 .popup {
-  position: absolute;
+  position: sticky;
   bottom: 20px;
-  right: 20px;
+  left: calc(100%);
+  margin-right: 20px;
+  margin-top: -200px;
   width: 320px;
   height: 200px;
   background: rgba(255, 255, 255, 1);