Skip to content

Commit 972d701

Browse files
committed
bugfix: centered header-menu items in <NodeContent />
1 parent 680a66c commit 972d701

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2424
- `<GridColumn />`
2525
- `<PropertyName />` and `<PropertyValue />`
2626

27+
### Fixed
28+
29+
- Centered header-menu items in <NodeContent />
30+
2731
## [25.0.0] - 2025-12-01
2832

2933
This is a major release, and it might be not compatible with your current usage of our library. Please read about the necessary changes in the section about how to migrate.

src/extensions/react-flow/nodes/_nodes.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
border-radius: $reactflow-node-border-radius;
5454

5555
&:hover {
56-
box-shadow: 0 0 0 6 * $reactflow-node-border-width eccgui-color-rgba($reactflow-edge-stroke-color-selected, 0.05);
56+
box-shadow: 0 0 0 6 * $reactflow-node-border-width
57+
eccgui-color-rgba($reactflow-edge-stroke-color-selected, 0.05);
5758
}
5859

5960
&.was-resized.is-resizable-vertical {
@@ -147,8 +148,10 @@
147148

148149
.#{$eccgui}-graphviz__node__header-depiction,
149150
.#{$eccgui}-graphviz__node__header-menu {
151+
display: flex;
150152
flex-grow: 0;
151153
flex-shrink: 0;
154+
align-items: center;
152155
max-height: calc(#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width});
153156
margin: 0 $eccgui-size-block-whitespace * 0.25;
154157

@@ -158,8 +161,6 @@
158161
}
159162

160163
.#{$eccgui}-graphviz__node__header-depiction {
161-
display: flex;
162-
align-items: center;
163164
justify-content: center;
164165

165166
/* TODO: does not work correctly with tooltips around

0 commit comments

Comments
 (0)