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:
David Lechner
2022-12-08 17:10:47 -06:00
committed by David Lechner
parent bef91f948f
commit e12c86781a
+3 -5
View File
@@ -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;
}
}