Skip to content

Commit 2891ff6

Browse files
committed
style: update style
1 parent 23aa12b commit 2891ff6

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

packages/chili-ui/src/ribbon/commandContext.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
align-items: center;
66
margin: 2px 8px;
77
gap: 12px;
8+
text-wrap: nowrap;
9+
overflow: hidden;
10+
overflow-x: auto;
811
}
912

1013
.title {

packages/chili-ui/src/ribbon/ribbon.module.css

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@
223223
display: flex;
224224
flex-direction: row;
225225
background-color: var(--panel-background-color);
226-
border-bottom: 1px solid var(--border-color);
227226
overflow-x: auto;
228227

229228
&::-webkit-scrollbar {
@@ -238,34 +237,29 @@
238237
& .groupPanel {
239238
display: flex;
240239
flex-direction: row;
240+
padding: 2px;
241241
}
242242
}
243243

244-
.commandContextPanel {
245-
display: flex;
246-
flex-direction: row;
247-
justify-content: stretch;
248-
flex: 1 1 auto;
249-
height: 32px;
250-
background-color: var(--panel-background-color);
251-
border-bottom: 1px solid var(--border-color);
252-
}
253-
254244
.commandContextOverlay {
245+
display: flex;
255246
position: absolute;
256247
top: 0px;
257248
left: 50%;
258249
transform: translateX(-50%);
259-
max-width: 600px;
250+
max-width: 90%;
260251
min-width: 320px;
261-
width: 60%;
252+
height: 32px;
253+
padding: 4px;
254+
width: fit-content;
262255
z-index: 10;
263256
background: var(--panel-background-color);
264257
/* Subtle, soft shadow only on bottom and sides */
265258
box-shadow:
266259
0 6px 24px -6px rgba(0, 0, 0, 0.1),
267260
0 2px 8px -2px rgba(0, 0, 0, 0.08);
268-
border-radius: 0 0 12px 12px;
261+
border-radius: 10px;
262+
border: 1px solid var(--border-color);
269263
opacity: 1;
270264
transition: opacity 0.2s;
271265
pointer-events: auto;

0 commit comments

Comments
 (0)