mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
toolbar: don't wrap buttons
We can have better control over the layout and avoid wrapping by using flex. Fixes: https://github.com/pybricks/support/issues/841
This commit is contained in:
committed by
David Lechner
parent
bef91f948f
commit
e12c86781a
@@ -9,6 +9,8 @@
|
||||
.pb-toolbar {
|
||||
padding: bp.$pt-grid-size bp.$pt-grid-size * 1.5;
|
||||
z-index: bp.$pt-z-index-content;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
// make small buttons more square and slightly smaller (some of this is
|
||||
// done in react)
|
||||
@@ -24,15 +26,11 @@
|
||||
}
|
||||
|
||||
.pb-toolbar-group {
|
||||
align-items: center;
|
||||
|
||||
&.pb-align-left {
|
||||
float: left;
|
||||
margin-right: bp.$pt-grid-size * 2;
|
||||
}
|
||||
|
||||
&.pb-align-right {
|
||||
float: right;
|
||||
margin-left: bp.$pt-grid-size * 2;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user