瀏覽代碼

fix #2225: fit dropdown option width

tophf 11 月之前
父節點
當前提交
6218f1096c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/common/ui/setting-check.vue

+ 3 - 0
src/common/ui/setting-check.vue

@@ -49,5 +49,8 @@ onBeforeUnmount(revoke);
   > :nth-child(2) {
     flex: 1 1 min-content; /* wrapping inside the label so it stays in the same row as [x] */
   }
+  .vl-dropdown-menu & {
+    width: max-content; /* CSS bug(?) workaround for absolutely positioned containers */
+  }
 }
 </style>