Spaces:
Paused

File size: 3,140 Bytes
bc9f3e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/* Custom dropdown (MiniSelect.svelte) — replaces the native <select> for
   the Generation Settings controls. Pure DOM popup: option clicks always
   land (a native select's OS-level popup is what WebView2 clips/mis-hits at
   the bottom of the app window). The menu flips above the trigger when
   there is no room below. */

.minisel {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.minisel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  max-width: 220px;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
}

.minisel-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minisel-caret {
  color: var(--ink-faint);
  font-size: 10px;
  flex: none;
}

.minisel-trigger:hover .minisel-caret,
.minisel-trigger:focus-visible .minisel-caret {
  color: var(--ink);
}

.minisel-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  /* Above the styled .lal-tooltip (z-index 1000) — an open menu must never
     be covered by hover chrome, even a tooltip that lingers from the
     trigger. (No ancestor creates a stacking context, so this competes in
     the root context directly against the tooltip's fixed bubble.) */
  z-index: 1100;
  min-width: 100%;
  max-width: 320px;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg-soft, #1f1f1f);
  border: 1px solid var(--line, #333);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.minisel-menu.up {
  top: auto;
  bottom: calc(100% + 6px);
}

.minisel-menu li {
  display: block;
}

.minisel-opt {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink, #eee);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minisel-opt:hover,
.minisel-opt:focus-visible,
.minisel-opt[aria-selected="true"] {
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
}

/* Multi-select mode: a reserved check column so labels align; the ✓
   appears only on checked entries, tinted with the theme's accent. */
.minisel-check {
  display: inline-block;
  width: 14px;
  margin-right: 4px;
  color: var(--accent, #d97757);
  font-weight: 700;
  visibility: hidden;
}

.minisel-opt.checked .minisel-check {
  visibility: visible;
}

/* Creatable mode: the "+ Add new" input pinned at the menu's bottom. */
.minisel-create {
  border-top: 1px solid var(--line, #333);
  margin-top: 4px;
  padding-top: 4px;
}

.minisel-create-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #333);
  outline: none;
  background: var(--bg-soft, #1f1f1f);
  color: var(--ink, #eee);
  font-family: inherit;
  font-size: 13px;
  border-radius: 6px;
  padding: 6px 10px;
}

.minisel-create-input:focus {
  border-color: var(--accent, #d97757);
}