style(usage): keep filters single-bordered and fixed width
Remove the nested filter outline and stop usage filter controls from resizing with their selected text.
This commit is contained in:
1 parent
072d771b3b
commit
ae17ab7518
2 files changed
+28
-15
No files matched your search
@@ -55,7 +55,7 @@ export function SelectMenu({
|
||||
const placeAbove = spaceBelow < minimumHeight && spaceAbove > spaceBelow;
|
||||
const available = placeAbove ? spaceAbove : spaceBelow;
|
||||
const height = Math.min(preferredHeight, Math.max(Math.min(minimumHeight, available), available));
|
||||
const width = Math.max(rect.width, 180);
|
||||
const width = Math.min(320, Math.max(rect.width, 180));
|
||||
const maxLeft = Math.max(edgeGap, window.innerWidth - edgeGap - width);
|
||||
const left = Math.min(Math.max(edgeGap, rect.left), maxLeft);
|
||||
const desiredTop = placeAbove ? rect.top - triggerGap - height : rect.bottom + triggerGap;
|
||||
|
||||
Reference in new issue
Block a user