flexlayout-react 0.5.21 → 0.6.0
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/ChangeLog.txt +11 -0
- package/README.md +7 -5
- package/declarations/Types.d.ts +1 -0
- package/declarations/model/IJsonModel.d.ts +2 -0
- package/declarations/model/Model.d.ts +1 -0
- package/declarations/view/Icons.d.ts +6 -0
- package/declarations/view/Layout.d.ts +3 -4
- package/declarations/view/MenuTabButton.d.ts +1 -0
- package/declarations/view/Tab.d.ts +1 -1
- package/declarations/view/TabButtonStamp.d.ts +1 -0
- package/declarations/view/Utils.d.ts +1 -0
- package/dist/flexlayout.js +48 -12
- package/dist/flexlayout_min.js +1 -1
- package/lib/PopupMenu.js +9 -4
- package/lib/PopupMenu.js.map +1 -1
- package/lib/Types.js +1 -0
- package/lib/Types.js.map +1 -1
- package/lib/model/Model.js +4 -0
- package/lib/model/Model.js.map +1 -1
- package/lib/model/TabNode.js +6 -1
- package/lib/model/TabNode.js.map +1 -1
- package/lib/view/BorderButton.js +9 -39
- package/lib/view/BorderButton.js.map +1 -1
- package/lib/view/BorderTabSet.js +4 -4
- package/lib/view/BorderTabSet.js.map +1 -1
- package/lib/view/Icons.js +36 -0
- package/lib/view/Icons.js.map +1 -0
- package/lib/view/Layout.js +41 -11
- package/lib/view/Layout.js.map +1 -1
- package/lib/view/MenuTabButton.js +22 -0
- package/lib/view/MenuTabButton.js.map +1 -0
- package/lib/view/Tab.js +4 -12
- package/lib/view/Tab.js.map +1 -1
- package/lib/view/TabButton.js +11 -42
- package/lib/view/TabButton.js.map +1 -1
- package/lib/view/TabButtonStamp.js +22 -0
- package/lib/view/TabButtonStamp.js.map +1 -0
- package/lib/view/TabFloating.js +2 -2
- package/lib/view/TabFloating.js.map +1 -1
- package/lib/view/TabOverflowHook.js +1 -1
- package/lib/view/TabSet.js +7 -18
- package/lib/view/TabSet.js.map +1 -1
- package/lib/view/Utils.js +61 -0
- package/lib/view/Utils.js.map +1 -0
- package/package.json +1 -1
- package/src/I18nLabel.ts +1 -1
- package/src/PopupMenu.tsx +23 -5
- package/src/Types.ts +1 -0
- package/src/model/IJsonModel.ts +2 -0
- package/src/model/Model.ts +7 -0
- package/src/model/TabNode.ts +6 -1
- package/src/view/BorderButton.tsx +8 -41
- package/src/view/BorderTabSet.tsx +10 -3
- package/src/view/Icons.tsx +36 -0
- package/src/view/Layout.tsx +42 -18
- package/src/view/Tab.tsx +2 -7
- package/src/view/TabButton.tsx +15 -48
- package/src/view/TabButtonStamp.tsx +47 -0
- package/src/view/TabFloating.tsx +1 -1
- package/src/view/TabOverflowHook.tsx +1 -1
- package/src/view/TabSet.tsx +10 -13
- package/src/view/Utils.tsx +71 -0
- package/style/_base.scss +75 -45
- package/style/dark.css +75 -69
- package/style/dark.css.map +1 -1
- package/style/dark.scss +15 -5
- package/style/gray.css +72 -66
- package/style/gray.css.map +1 -1
- package/style/gray.scss +10 -3
- package/style/light.css +76 -70
- package/style/light.css.map +1 -1
- package/style/light.scss +16 -6
- package/images/close.png +0 -0
- package/images/maximize.png +0 -0
- package/images/more.png +0 -0
- package/images/more2.png +0 -0
- package/images/popout.png +0 -0
- package/images/restore.png +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import TabNode from "../model/TabNode";
|
|
3
|
+
import { ILayoutCallbacks } from "./Layout";
|
|
4
|
+
import { CLASSES } from "../Types";
|
|
5
|
+
import { getRenderStateEx } from "./Utils";
|
|
6
|
+
|
|
7
|
+
/** @hidden @internal */
|
|
8
|
+
export interface ITabButtonStampProps {
|
|
9
|
+
node: TabNode;
|
|
10
|
+
layout: ILayoutCallbacks;
|
|
11
|
+
iconFactory?: (node: TabNode) => React.ReactNode | undefined;
|
|
12
|
+
titleFactory?: (node: TabNode) => React.ReactNode | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** @hidden @internal */
|
|
16
|
+
export const TabButtonStamp = (props: ITabButtonStampProps) => {
|
|
17
|
+
const { layout, node, iconFactory, titleFactory } = props;
|
|
18
|
+
const selfRef = React.useRef<HTMLDivElement | null>(null);
|
|
19
|
+
|
|
20
|
+
const cm = layout.getClassName;
|
|
21
|
+
|
|
22
|
+
let classNames = cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP);
|
|
23
|
+
|
|
24
|
+
const renderState = getRenderStateEx(layout, node, iconFactory, titleFactory);
|
|
25
|
+
|
|
26
|
+
let content = renderState.content ? (
|
|
27
|
+
<div className={cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)}>
|
|
28
|
+
{renderState.content}
|
|
29
|
+
</div>)
|
|
30
|
+
: node._getNameForOverflowMenu();
|
|
31
|
+
|
|
32
|
+
const leading = renderState.leading ? (
|
|
33
|
+
<div className={cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)}>
|
|
34
|
+
{renderState.leading}
|
|
35
|
+
</div>) : null;
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div
|
|
39
|
+
ref={selfRef}
|
|
40
|
+
className={classNames}
|
|
41
|
+
title={node.getHelpText()}
|
|
42
|
+
>
|
|
43
|
+
{leading}
|
|
44
|
+
{content}
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
};
|
package/src/view/TabFloating.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import TabSetNode from "../model/TabSetNode";
|
|
|
5
5
|
import { CLASSES } from "../Types";
|
|
6
6
|
import { ILayoutCallbacks } from "./Layout";
|
|
7
7
|
import { I18nLabel } from "../I18nLabel";
|
|
8
|
-
import { hideElement } from "./
|
|
8
|
+
import { hideElement } from "./Utils";
|
|
9
9
|
|
|
10
10
|
/** @hidden @internal */
|
|
11
11
|
export interface ITabFloatingProps {
|
|
@@ -92,7 +92,7 @@ export const useTabOverflow = (
|
|
|
92
92
|
return; // nothing to do all tabs are shown in available space
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
endPos -= hiddenTabs.length > 0 ? (orientation === Orientation.HORZ ?
|
|
95
|
+
endPos -= hiddenTabs.length > 0 ? (orientation === Orientation.HORZ ? 16 : 0) : 45; // will need hidden tabs
|
|
96
96
|
|
|
97
97
|
let shiftPos = 0;
|
|
98
98
|
|
package/src/view/TabSet.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { TabButton } from "./TabButton";
|
|
|
9
9
|
import { useTabOverflow } from "./TabOverflowHook";
|
|
10
10
|
import Orientation from "../Orientation";
|
|
11
11
|
import { CLASSES } from "../Types";
|
|
12
|
-
import { hideElement } from "./
|
|
12
|
+
import { hideElement, isAuxMouseEvent } from "./Utils";
|
|
13
13
|
|
|
14
14
|
/** @hidden @internal */
|
|
15
15
|
export interface ITabSetProps {
|
|
@@ -35,7 +35,14 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
35
35
|
|
|
36
36
|
const onOverflowClick = (event: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
37
37
|
const element = overflowbuttonRef.current!;
|
|
38
|
-
showPopup(
|
|
38
|
+
showPopup(
|
|
39
|
+
element,
|
|
40
|
+
hiddenTabs,
|
|
41
|
+
onOverflowItemSelect,
|
|
42
|
+
layout,
|
|
43
|
+
iconFactory,
|
|
44
|
+
titleFactory,
|
|
45
|
+
);
|
|
39
46
|
event.stopPropagation();
|
|
40
47
|
};
|
|
41
48
|
|
|
@@ -174,7 +181,7 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
174
181
|
data-layout-path={path + "/button/overflow"}
|
|
175
182
|
|
|
176
183
|
ref={overflowbuttonRef}
|
|
177
|
-
className={cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW)}
|
|
184
|
+
className={cm(CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + cm(CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW)}
|
|
178
185
|
title={overflowTitle}
|
|
179
186
|
onClick={onOverflowClick}
|
|
180
187
|
onMouseDown={onInterceptMouseDown}
|
|
@@ -347,14 +354,4 @@ export const TabSet = (props: ITabSetProps) => {
|
|
|
347
354
|
);
|
|
348
355
|
};
|
|
349
356
|
|
|
350
|
-
/** @hidden @internal */
|
|
351
|
-
export function isAuxMouseEvent(event: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>) {
|
|
352
|
-
let auxEvent = false;
|
|
353
|
-
if (event.nativeEvent instanceof MouseEvent) {
|
|
354
|
-
if (event.nativeEvent.button !== 0 || event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {
|
|
355
|
-
auxEvent = true;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return auxEvent;
|
|
359
|
-
}
|
|
360
357
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import TabNode from "../model/TabNode";
|
|
3
|
+
import { ILayoutCallbacks, ITitleObject } from "./Layout";
|
|
4
|
+
|
|
5
|
+
/** @hidden @internal */
|
|
6
|
+
export function getRenderStateEx (
|
|
7
|
+
layout: ILayoutCallbacks,
|
|
8
|
+
node: TabNode,
|
|
9
|
+
iconFactory?: (node: TabNode) => React.ReactNode | undefined,
|
|
10
|
+
titleFactory?: (node: TabNode) => React.ReactNode | undefined
|
|
11
|
+
) {
|
|
12
|
+
let leadingContent = iconFactory ? iconFactory(node) : undefined;
|
|
13
|
+
let titleContent: React.ReactNode = node.getName();
|
|
14
|
+
let name = node.getName();
|
|
15
|
+
|
|
16
|
+
function isTitleObject(obj: any): obj is ITitleObject {
|
|
17
|
+
return obj.titleContent !== undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (titleFactory !== undefined) {
|
|
21
|
+
const titleObj = titleFactory(node);
|
|
22
|
+
if (titleObj !== undefined) {
|
|
23
|
+
if (typeof titleObj === "string") {
|
|
24
|
+
titleContent = titleObj as string;
|
|
25
|
+
name = titleObj as string;
|
|
26
|
+
} else if (isTitleObject(titleObj)) {
|
|
27
|
+
titleContent = titleObj.titleContent;
|
|
28
|
+
name = titleObj.name;
|
|
29
|
+
} else {
|
|
30
|
+
titleContent = titleObj;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (leadingContent === undefined && node.getIcon() !== undefined) {
|
|
36
|
+
leadingContent = <img style={{width:"1em", height:"1em"}} src={node.getIcon()} alt="leadingContent" />;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let buttons: any[] = [];
|
|
40
|
+
|
|
41
|
+
// allow customization of leading contents (icon) and contents
|
|
42
|
+
const renderState = { leading: leadingContent, content: titleContent, name, buttons };
|
|
43
|
+
layout.customizeTab(node, renderState);
|
|
44
|
+
|
|
45
|
+
node._setRenderedName(renderState.name);
|
|
46
|
+
|
|
47
|
+
return renderState;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @hidden @internal */
|
|
52
|
+
export function hideElement(style: Record<string, any>, useVisibility: ConstrainBoolean ) {
|
|
53
|
+
if (useVisibility) {
|
|
54
|
+
style.visibility = "hidden";
|
|
55
|
+
} else {
|
|
56
|
+
style.display = "none";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/** @hidden @internal */
|
|
62
|
+
export function isAuxMouseEvent(event: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>) {
|
|
63
|
+
let auxEvent = false;
|
|
64
|
+
if (event.nativeEvent instanceof MouseEvent) {
|
|
65
|
+
if (event.nativeEvent.button !== 0 || event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {
|
|
66
|
+
auxEvent = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return auxEvent;
|
|
70
|
+
}
|
|
71
|
+
|
package/style/_base.scss
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
--color-6: #{$color_6};
|
|
20
20
|
--color-drag1: #{$color_drag1};
|
|
21
21
|
--color-drag2: #{$color_drag2};
|
|
22
|
+
--color-drag1-background: #{$color_drag1_background};
|
|
23
|
+
--color-drag2-background: #{$color_drag2_background};
|
|
22
24
|
|
|
23
25
|
--font-size: #{$font-size};
|
|
24
26
|
--font-family: #{$font-family};
|
|
@@ -55,14 +57,14 @@
|
|
|
55
57
|
pointer-events: none;
|
|
56
58
|
box-sizing: border-box;
|
|
57
59
|
border: 2px solid var(--color-drag1);
|
|
58
|
-
|
|
60
|
+
background: var(--color-drag1-background);
|
|
59
61
|
border-radius: 5px;
|
|
60
62
|
z-index: 1000;
|
|
61
63
|
|
|
62
64
|
&_edge {
|
|
63
65
|
pointer-events: none;
|
|
64
66
|
border: 2px solid var(--color-drag2);
|
|
65
|
-
|
|
67
|
+
background: var(--color-drag2-background);
|
|
66
68
|
border-radius: 5px;
|
|
67
69
|
z-index: 1000;
|
|
68
70
|
box-sizing: border-box;
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
justify-content: center;
|
|
95
97
|
flex-direction: column;
|
|
96
98
|
overflow: hidden;
|
|
97
|
-
padding:
|
|
99
|
+
padding: 0.5em 1em;
|
|
98
100
|
word-wrap: break-word;
|
|
99
101
|
font-size: var(--font-size);
|
|
100
102
|
font-family: var(--font-family);
|
|
@@ -157,6 +159,9 @@
|
|
|
157
159
|
|
|
158
160
|
&_tab_container {
|
|
159
161
|
display: flex;
|
|
162
|
+
gap: 4px;
|
|
163
|
+
padding-left: 4px;
|
|
164
|
+
padding-right: 4px;
|
|
160
165
|
box-sizing: border-box;
|
|
161
166
|
position: absolute;
|
|
162
167
|
top: 0;
|
|
@@ -182,6 +187,14 @@
|
|
|
182
187
|
}
|
|
183
188
|
}
|
|
184
189
|
|
|
190
|
+
&__tab_button_stamp {
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: 0.3em;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
}
|
|
197
|
+
|
|
185
198
|
&__tab {
|
|
186
199
|
overflow: auto;
|
|
187
200
|
position: absolute;
|
|
@@ -191,10 +204,11 @@
|
|
|
191
204
|
|
|
192
205
|
&_button {
|
|
193
206
|
display: flex;
|
|
207
|
+
gap: 0.3em;
|
|
194
208
|
align-items: center;
|
|
195
209
|
box-sizing: border-box;
|
|
196
|
-
padding: 3px
|
|
197
|
-
|
|
210
|
+
padding: 3px 0.5em; // if you change top or bottom update the tabset_sizer above
|
|
211
|
+
|
|
198
212
|
cursor: pointer;
|
|
199
213
|
@include tab_button_mixin;
|
|
200
214
|
|
|
@@ -243,65 +257,74 @@
|
|
|
243
257
|
|
|
244
258
|
&_trailing {
|
|
245
259
|
display: flex;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
260
|
+
visibility: hidden;
|
|
261
|
+
border-radius: 4px;
|
|
262
|
+
&:hover {
|
|
263
|
+
@include close_button_hovered_mixin;
|
|
264
|
+
}
|
|
249
265
|
}
|
|
250
266
|
@media (pointer: coarse) {
|
|
251
267
|
&_trailing {
|
|
252
|
-
min-width: 20px;
|
|
253
|
-
min-height: 20px;
|
|
254
268
|
}
|
|
255
269
|
}
|
|
256
270
|
@media (hover: hover) {
|
|
257
271
|
&:hover &_trailing {
|
|
258
|
-
|
|
272
|
+
visibility: visible;
|
|
259
273
|
}
|
|
260
274
|
}
|
|
261
275
|
|
|
262
276
|
&--selected &_trailing {
|
|
263
|
-
|
|
277
|
+
visibility: visible;
|
|
264
278
|
}
|
|
265
279
|
|
|
266
280
|
&_overflow {
|
|
267
|
-
|
|
268
|
-
|
|
281
|
+
display: flex;
|
|
282
|
+
align-items: center;
|
|
269
283
|
border: none;
|
|
270
284
|
color: gray;
|
|
271
285
|
font-size: inherit;
|
|
272
|
-
background: transparent
|
|
286
|
+
background-color: transparent;
|
|
273
287
|
}
|
|
274
288
|
}
|
|
275
289
|
|
|
276
290
|
&_toolbar {
|
|
277
291
|
display: flex;
|
|
278
292
|
align-items: center;
|
|
293
|
+
gap: .3em;
|
|
294
|
+
padding-left: .5em;
|
|
295
|
+
padding-right: .3em;
|
|
279
296
|
|
|
280
297
|
&_button {
|
|
281
|
-
min-width: 20px;
|
|
282
|
-
min-height: 20px;
|
|
283
298
|
border: none;
|
|
284
299
|
outline: none;
|
|
300
|
+
font-size: inherit;
|
|
301
|
+
margin: 0px;
|
|
302
|
+
background-color: transparent;
|
|
303
|
+
border-radius: 4px;
|
|
304
|
+
padding: 1px;
|
|
305
|
+
@media (hover: hover) {
|
|
306
|
+
&:hover {
|
|
307
|
+
@include toolbar_button_hovered_mixin;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
285
310
|
|
|
286
311
|
&-min {
|
|
287
|
-
background: transparent url("../images/maximize.png") no-repeat center;
|
|
288
312
|
}
|
|
289
313
|
|
|
290
314
|
&-max {
|
|
291
|
-
background: transparent url("../images/restore.png") no-repeat center;
|
|
292
315
|
}
|
|
293
316
|
|
|
294
317
|
&-float {
|
|
295
|
-
background: transparent url("../images/popout.png") no-repeat center;
|
|
296
318
|
}
|
|
297
319
|
|
|
298
320
|
&-close {
|
|
299
|
-
background: transparent url("../images/close.png") no-repeat center;
|
|
300
321
|
}
|
|
301
322
|
}
|
|
302
323
|
|
|
303
324
|
&_sticky_buttons_container {
|
|
304
325
|
display: flex;
|
|
326
|
+
gap: 0.3em;
|
|
327
|
+
padding-left: 2px;
|
|
305
328
|
align-items: center;
|
|
306
329
|
}
|
|
307
330
|
}
|
|
@@ -375,6 +398,9 @@
|
|
|
375
398
|
&_tab_container {
|
|
376
399
|
white-space: nowrap;
|
|
377
400
|
display: flex;
|
|
401
|
+
gap: 4px;
|
|
402
|
+
padding-left: 2px;
|
|
403
|
+
padding-right: 2px;
|
|
378
404
|
box-sizing: border-box;
|
|
379
405
|
position: absolute;
|
|
380
406
|
top: 0;
|
|
@@ -395,10 +421,11 @@
|
|
|
395
421
|
|
|
396
422
|
&_button {
|
|
397
423
|
display: flex;
|
|
424
|
+
gap: 0.3em;
|
|
398
425
|
align-items: center;
|
|
399
426
|
cursor: pointer;
|
|
400
|
-
padding: 3px
|
|
401
|
-
margin: 2px;
|
|
427
|
+
padding: 3px 0.5em;
|
|
428
|
+
margin: 2px 0px;
|
|
402
429
|
box-sizing: border-box;
|
|
403
430
|
white-space: nowrap;
|
|
404
431
|
@include border_button_mixin;
|
|
@@ -426,68 +453,71 @@
|
|
|
426
453
|
|
|
427
454
|
&_trailing {
|
|
428
455
|
display: flex;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
456
|
+
border-radius: 4px;
|
|
457
|
+
visibility: hidden;
|
|
458
|
+
&:hover {
|
|
459
|
+
@include close_button_hovered_mixin;
|
|
460
|
+
}
|
|
432
461
|
}
|
|
433
|
-
|
|
434
462
|
@media (pointer: coarse) {
|
|
435
463
|
&_trailing {
|
|
436
|
-
min-width: 20px;
|
|
437
|
-
min-height: 20px;
|
|
438
464
|
}
|
|
439
465
|
}
|
|
440
|
-
|
|
441
466
|
@media (hover: hover) {
|
|
442
467
|
&:hover &_trailing {
|
|
443
|
-
|
|
468
|
+
visibility: visible;
|
|
444
469
|
}
|
|
445
470
|
}
|
|
446
471
|
|
|
447
472
|
&--selected &_trailing {
|
|
448
|
-
|
|
473
|
+
visibility: visible;
|
|
449
474
|
}
|
|
450
475
|
}
|
|
451
476
|
|
|
452
477
|
&_toolbar {
|
|
453
478
|
display: flex;
|
|
479
|
+
gap: .3em;
|
|
454
480
|
align-items: center;
|
|
455
481
|
|
|
456
|
-
&_left
|
|
482
|
+
&_left,
|
|
483
|
+
&_right {
|
|
457
484
|
flex-direction: column;
|
|
485
|
+
padding-top: .5em;
|
|
486
|
+
padding-bottom: .3em;
|
|
458
487
|
}
|
|
459
488
|
|
|
460
|
-
&
|
|
461
|
-
|
|
489
|
+
&_top,
|
|
490
|
+
&_bottom {
|
|
491
|
+
padding-left: .5em;
|
|
492
|
+
padding-right: .3em;
|
|
462
493
|
}
|
|
463
494
|
|
|
464
495
|
&_button {
|
|
465
|
-
min-width: 20px;
|
|
466
|
-
min-height: 20px;
|
|
467
496
|
border: none;
|
|
468
497
|
outline: none;
|
|
498
|
+
font-size: inherit;
|
|
499
|
+
background-color: transparent;
|
|
500
|
+
border-radius: 4px;
|
|
501
|
+
padding: 1px;
|
|
469
502
|
|
|
470
503
|
&-float {
|
|
471
|
-
background: transparent url("../images/popout.png") no-repeat center;
|
|
472
504
|
}
|
|
473
505
|
|
|
474
506
|
&_overflow {
|
|
507
|
+
display: flex;
|
|
508
|
+
align-items: center;
|
|
475
509
|
border: none;
|
|
476
|
-
padding-left: 12px;
|
|
477
510
|
color: gray;
|
|
478
511
|
font-size: inherit;
|
|
479
|
-
background: transparent
|
|
512
|
+
background-color: transparent;
|
|
480
513
|
}
|
|
481
514
|
|
|
482
515
|
&_overflow_top,
|
|
483
516
|
&_overflow_bottom {
|
|
484
|
-
margin-left: 10px;
|
|
485
517
|
}
|
|
486
518
|
|
|
487
519
|
&_overflow_right,
|
|
488
520
|
&_overflow_left {
|
|
489
|
-
padding-right: 0px;
|
|
490
|
-
margin-top: 5px;
|
|
491
521
|
}
|
|
492
522
|
}
|
|
493
523
|
}
|
|
@@ -498,8 +528,7 @@
|
|
|
498
528
|
font-family: var(--font-family);
|
|
499
529
|
|
|
500
530
|
&_item {
|
|
501
|
-
|
|
502
|
-
padding: 2px 10px 2px 10px;
|
|
531
|
+
padding: 2px 0.5em;
|
|
503
532
|
white-space: nowrap;
|
|
504
533
|
cursor: pointer;
|
|
505
534
|
border-radius: 2px;
|
|
@@ -522,6 +551,7 @@
|
|
|
522
551
|
max-height: 50%;
|
|
523
552
|
min-width: 100px;
|
|
524
553
|
overflow: auto;
|
|
554
|
+
padding: 2px;
|
|
525
555
|
}
|
|
526
556
|
}
|
|
527
557
|
|