-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathno-code-toolbar.css
More file actions
136 lines (119 loc) · 2.75 KB
/
no-code-toolbar.css
File metadata and controls
136 lines (119 loc) · 2.75 KB
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
.no-code-toolbar-wrapper {
display: flex;
align-items: center;
width: 100%;
gap: 8px;
}
.no-code-toolbar-content {
flex: 1;
overflow: hidden;
scroll-behavior: smooth;
padding: 12px 0px 8px;
display: flex;
align-items: center;
}
/* Hidden toolbar items (overflow) */
.toolbar-item-hidden {
display: none !important;
}
/* More button — align with toolbar items that have seq_badge_wrapper above */
.toolbar-more-item {
margin-top: -11px;
}
.no-code-toolbar-wrapper .toolbar-ellipsis-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
height: 32px;
padding: 0 12px;
border-radius: 4px;
flex-shrink: 0;
transition: background-color 0.2s;
color: var(--icons-color);
font-size: 13px;
white-space: nowrap;
vertical-align: middle;
}
.toolbar-more-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 4px;
background-color: var(--primary, #1890ff);
color: #fff;
font-size: 11px;
font-weight: 600;
line-height: 1;
}
.toolbar-ellipsis-button:hover {
background-color: var(--hover-color);
}
.toolbar-ellipsis-button:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
/* Dropdown menu styling */
.no-code-toolbar-dropdown .ant-dropdown-menu {
max-height: 400px;
overflow-y: auto;
background-color: var(--modal-bg);
border: 1px solid var(--border-color-3);
padding: 4px 0;
}
/* Reset menu item padding - let the button inside handle it */
.no-code-toolbar-dropdown .ant-dropdown-menu-item {
padding: 0;
margin: 0;
background-color: transparent;
}
.no-code-toolbar-dropdown .ant-dropdown-menu-item:hover {
background-color: transparent;
}
/* Toolbar item wrapper inside dropdown */
.no-code-toolbar-dropdown .toolbar-item {
padding: 0;
margin: 0;
width: 100%;
}
/* Button inside dropdown should have proper padding and full width */
.no-code-toolbar-dropdown .toolbar-item .ant-btn {
width: 100%;
justify-content: flex-start;
padding: 8px 16px;
height: auto;
border-radius: 0;
text-align: left;
}
.no-code-toolbar-dropdown .toolbar-item .ant-btn:hover {
background-color: var(--hover-color);
}
/* Sequence badge positioning in dropdown */
.no-code-toolbar-dropdown .seq_badge_wrapper {
position: absolute;
top: 2px;
right: 8px;
display: flex;
gap: 2px;
}
.no-code-toolbar-dropdown .seq_badge {
font-size: 10px;
min-width: 16px;
height: 16px;
}
/* Custom dropdown menu for "More" button */
.no-code-toolbar-more-menu {
max-height: 400px;
overflow-y: auto;
background-color: var(--modal-bg);
border: 1px solid var(--border-color-3);
border-radius: 8px;
padding: 4px 0;
}
.no-code-toolbar-more-item {
padding: 0;
margin: 0;
}