Skip to content

Commit ce4bb41

Browse files
authored
style(toolbox): adjust layout and buttons for responsiveness and overflow handling (#779)
- Update container to be hidden on small screens and adjust layout for medium screens - Add `flex-shrink-0` to buttons for consistent sizing in flexible layouts
1 parent 062110f commit ce4bb41

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/components/Toolbox.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class Toolbox extends Component {
77

88
render() {
99
return (
10-
<div className="flex gap-6 px-10 py-2 bg-black-400 flex-wrap">
11-
<button id="newParticipantBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
10+
<div className="hidden md:flex gap-6 px-10 py-2 bg-black-400 flex-shrink-0 overflow-hidden">
11+
<button id="newParticipantBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
1212
<svg
1313
id="addNewParticipantButton"
1414
width="100%"
@@ -42,7 +42,7 @@ class Toolbox extends Component {
4242
</g>
4343
</svg>
4444
</button>
45-
<button id="asyncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
45+
<button id="asyncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
4646
<svg
4747
id="addAsyncMessageButton"
4848
width="100%"
@@ -106,7 +106,7 @@ class Toolbox extends Component {
106106
</g>
107107
</svg>
108108
</button>
109-
<button id="syncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
109+
<button id="syncMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
110110
<svg
111111
id="addSyncMessageButton"
112112
width="100%"
@@ -159,7 +159,7 @@ class Toolbox extends Component {
159159
</g>
160160
</svg>
161161
</button>
162-
<button id="returnValueBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
162+
<button id="returnValueBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
163163
<svg
164164
id="addReturnValueButton"
165165
width="100%"
@@ -272,7 +272,7 @@ class Toolbox extends Component {
272272
</g>
273273
</svg>
274274
</button>
275-
<button id="selfMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
275+
<button id="selfMessageBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
276276
<svg
277277
id="addSelfMessageButton"
278278
width="100%"
@@ -334,7 +334,7 @@ class Toolbox extends Component {
334334
</g>
335335
</svg>
336336
</button>
337-
<button id="newInstanceBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
337+
<button id="newInstanceBtn" className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
338338
<svg
339339
id="addNewInstanceButton"
340340
width="100%"
@@ -393,7 +393,7 @@ class Toolbox extends Component {
393393
</g>
394394
</svg>
395395
</button>
396-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
396+
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
397397
<svg
398398
id="addConditionalButton"
399399
width="100%"
@@ -450,7 +450,7 @@ class Toolbox extends Component {
450450
</g>
451451
</svg>
452452
</button>
453-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
453+
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
454454
<svg
455455
id="addLoopButton"
456456
width="100%"
@@ -507,7 +507,7 @@ class Toolbox extends Component {
507507
</g>
508508
</svg>
509509
</button>
510-
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between">
510+
<button className="hover:bg-black-600 p-1 h-7 w-7 rounded-lg flex items-center justify-between flex-shrink-0">
511511
<svg
512512
width="100%"
513513
height="16"

0 commit comments

Comments
 (0)