瀏覽代碼

Fix popups positioning.

Thanks to xet7 !

Fixes #5924
Lauri Ojansivu 1 周之前
父節點
當前提交
77eea4d494
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      client/components/main/popup.css

+ 5 - 5
client/components/main/popup.css

@@ -76,22 +76,22 @@
   overflow: hidden;
 }
 .pop-over .content-container {
-  width: 5000px;
+  width: 100%;
   max-height: 70vh;
   transition: transform 0.2s;
 }
 .pop-over .content-container .content {
   /* Match wider popover, leave padding */
-  width: min(360px, 52vw);
+  width: 100%;
   padding: 0 1.3vw 1.3vh;
-  float: left;
+  box-sizing: border-box;
 }
 
 /* Utility: remove left gutter inside specific popups */
 .pop-over .content .flush-left {
   margin-left: -1.3vw;
   padding-left: 0;
-  width: calc(100% + 1.3vw);
+  width: calc(100% + 2.6vw);
 }
 
 /* Swimlane popups: remove left gutter, align content fully left */
@@ -99,7 +99,7 @@
 .pop-over .content .swimlane-height-popup {
   margin-left: -1.3vw;
   padding-left: 0;
-  width: calc(100% + 1.3vw);
+  width: calc(100% + 2.6vw);
 }
 
 /* Ensure buttons don’t reserve left space; align to flow */