@objectifthunes/whiteboard 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1602,18 +1602,25 @@ button.chip:hover {
1602
1602
  min-height: 1rem;
1603
1603
  }
1604
1604
 
1605
- /* .toolbar buttons read slightly larger than panel buttons */
1605
+ /* every control inside a toolbar shares ONE height — buttons, inputs,
1606
+ icon buttons all sit on the same rhythm */
1607
+ .toolbar {
1608
+ --wb-chrome-control: 2.2rem;
1609
+ }
1610
+
1606
1611
  .toolbar .wb-btn {
1607
- padding: 0.45rem 0.72rem;
1612
+ height: var(--wb-chrome-control);
1613
+ padding: 0 0.72rem;
1608
1614
  font-size: var(--wb-fs-md);
1609
1615
  }
1610
1616
 
1611
- /* inputs and chips inside a toolbar match the button rhythm */
1612
1617
  .toolbar input:not([type]),
1613
1618
  .toolbar input[type='text'],
1614
1619
  .toolbar input[type='number'],
1615
1620
  .toolbar input[type='search'] {
1616
- padding: 0.38rem 0.45rem;
1621
+ height: var(--wb-chrome-control);
1622
+ box-sizing: border-box;
1623
+ padding: 0 0.5rem;
1617
1624
  font-size: var(--wb-fs-md);
1618
1625
  line-height: 1.2;
1619
1626
  }
@@ -1665,6 +1672,7 @@ button.chip:hover {
1665
1672
  min-width: 2.2rem;
1666
1673
  padding: 0;
1667
1674
  justify-content: center;
1675
+ flex: none;
1668
1676
  }
1669
1677
 
1670
1678
  .toolbar .wb-btn--icon-only {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectifthunes/whiteboard",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Pan/zoom whiteboard canvas with draggable panels, minimap, snap-to-grid, and zoom controls",
5
5
  "license": "MIT",
6
6
  "type": "module",