浏览代码

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) {
   > :nth-child(2) {
     flex: 1 1 min-content; /* wrapping inside the label so it stays in the same row as [x] */
     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>
 </style>