Browse Source

fix #2225: fit dropdown option width

tophf 11 months ago
parent
commit
6218f1096c
1 changed files with 3 additions and 0 deletions
  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>