@omnitend/dashboard-for-laravel 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/resources/css/theme.scss +18 -0
package/package.json
CHANGED
package/resources/css/theme.scss
CHANGED
|
@@ -258,6 +258,24 @@ $dashboard-navbar-height: 64px;
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
// ----------------------------------------------------------------------------
|
|
262
|
+
// Autocomplete
|
|
263
|
+
// ----------------------------------------------------------------------------
|
|
264
|
+
// BAutocomplete's dropdown popup (`.b-autocomplete-content`) only sets a
|
|
265
|
+
// max-height, so it inherits the (often narrow) anchor/trigger width and clips
|
|
266
|
+
// long option labels — a real problem for a DXTable `select` filter in a narrow
|
|
267
|
+
// column. Let it grow to fit the longest option while staying at least the
|
|
268
|
+
// trigger width, capped so a pathological label can't make it enormous.
|
|
269
|
+
//
|
|
270
|
+
// This lives in the global theme (not DAutocomplete's scoped styles) on
|
|
271
|
+
// purpose: the popup can be teleported out of the component (BAutocomplete's
|
|
272
|
+
// `teleportTo` prop), which escapes scoped `:deep()` entirely — a global rule
|
|
273
|
+
// applies whether or not it's teleported.
|
|
274
|
+
.b-autocomplete-content {
|
|
275
|
+
min-width: max-content; // grow to the longest option (floors at the trigger width)
|
|
276
|
+
max-width: min(90vw, 32rem); // but don't run away
|
|
277
|
+
}
|
|
278
|
+
|
|
261
279
|
// ----------------------------------------------------------------------------
|
|
262
280
|
// Custom Utilities
|
|
263
281
|
// ----------------------------------------------------------------------------
|