diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-06-23 23:21:57 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-06-23 23:21:57 +0200 |
commit | 979ef6da8cb6133e3feb88e5f00709052f1599bc (patch) | |
tree | 8ce9996298f4382ae686f7c33300ec5748acda3e /subprojects/frontend/src | |
parent | build: publish Maven snapshots to GH pages (diff) | |
download | refinery-979ef6da8cb6133e3feb88e5f00709052f1599bc.tar.gz refinery-979ef6da8cb6133e3feb88e5f00709052f1599bc.tar.zst refinery-979ef6da8cb6133e3feb88e5f00709052f1599bc.zip |
chore(deps): bump dependencies
Diffstat (limited to 'subprojects/frontend/src')
-rw-r--r-- | subprojects/frontend/src/graph/VisibilityPanel.tsx | 36 | ||||
-rw-r--r-- | subprojects/frontend/src/xtext/UpdateStateTracker.ts | 2 |
2 files changed, 26 insertions, 12 deletions
diff --git a/subprojects/frontend/src/graph/VisibilityPanel.tsx b/subprojects/frontend/src/graph/VisibilityPanel.tsx index 9d81e906..619113ef 100644 --- a/subprojects/frontend/src/graph/VisibilityPanel.tsx +++ b/subprojects/frontend/src/graph/VisibilityPanel.tsx | |||
@@ -102,20 +102,32 @@ const VisibilityDialogScroll = styled('div', { | |||
102 | width: 'min-content', | 102 | width: 'min-content', |
103 | }, | 103 | }, |
104 | '& td:nth-of-type(3)': { | 104 | '& td:nth-of-type(3)': { |
105 | cursor: 'pointer', | 105 | position: 'relative', |
106 | userSelect: 'none', | ||
107 | WebkitTapHighlightColor: 'transparent', | ||
108 | }, | 106 | }, |
109 | 107 | ||
110 | '& thead th, .VisibilityDialog-custom tr:last-child td': { | 108 | '& thead th, .VisibilityDialog-custom tr:last-child td': { |
111 | borderBottom: `1px solid ${theme.palette.divider}`, | 109 | borderBottom: `1px solid ${theme.palette.divider}`, |
112 | }, | 110 | }, |
113 | // Hack to apply `text-overflow`. | 111 | '.VisibilityDialog-toggleVisibility': { |
114 | '.VisibilityDialog-nowrap': { | 112 | // Hack to apply `text-overflow`. |
115 | maxWidth: '100%', | 113 | maxWidth: '100%', |
116 | overflow: 'hidden', | 114 | overflow: 'hidden', |
117 | wordWrap: 'nowrap', | 115 | wordWrap: 'nowrap', |
118 | textOverflow: 'ellipsis', | 116 | textOverflow: 'ellipsis', |
117 | background: 'transparent', | ||
118 | border: 'none', | ||
119 | font: 'inherit', | ||
120 | lineHeight: 'inherit', | ||
121 | cursor: 'pointer', | ||
122 | WebkitTapHighlightColor: 'transparent', | ||
123 | '&::after': { | ||
124 | content: '" "', | ||
125 | position: 'absolute', | ||
126 | left: 0, | ||
127 | right: 0, | ||
128 | top: 0, | ||
129 | bottom: 0, | ||
130 | }, | ||
119 | }, | 131 | }, |
120 | '.VisibilityDialog-empty': { | 132 | '.VisibilityDialog-empty': { |
121 | display: 'flex', | 133 | display: 'flex', |
@@ -172,13 +184,15 @@ function VisibilityPanel({ | |||
172 | /> | 184 | /> |
173 | </Tooltip> | 185 | </Tooltip> |
174 | </td> | 186 | </td> |
175 | <td | 187 | <td> |
176 | onClick={() => graph.cycleVisibility(name)} | 188 | <button |
177 | aria-label="Toggle visiblity" | 189 | type="button" |
178 | > | 190 | onClick={() => graph.cycleVisibility(name)} |
179 | <div className="VisibilityDialog-nowrap"> | 191 | aria-label={`Toggle visibility of ${metadata.simpleName}`} |
192 | className="VisibilityDialog-toggleVisibility" | ||
193 | > | ||
180 | <RelationName metadata={metadata} abbreviate={graph.abbreviate} /> | 194 | <RelationName metadata={metadata} abbreviate={graph.abbreviate} /> |
181 | </div> | 195 | </button> |
182 | </td> | 196 | </td> |
183 | </tr> | 197 | </tr> |
184 | ); | 198 | ); |
diff --git a/subprojects/frontend/src/xtext/UpdateStateTracker.ts b/subprojects/frontend/src/xtext/UpdateStateTracker.ts index 4ce93ed6..3297e12a 100644 --- a/subprojects/frontend/src/xtext/UpdateStateTracker.ts +++ b/subprojects/frontend/src/xtext/UpdateStateTracker.ts | |||
@@ -102,7 +102,7 @@ export default class UpdateStateTracker { | |||
102 | onTransaction(transaction: Transaction): boolean { | 102 | onTransaction(transaction: Transaction): boolean { |
103 | const setDirtyChangesEffect = transaction.effects.find((effect) => | 103 | const setDirtyChangesEffect = transaction.effects.find((effect) => |
104 | effect.is(setDirtyChanges), | 104 | effect.is(setDirtyChanges), |
105 | ) as StateEffect<ChangeSet> | undefined; | 105 | ); |
106 | if (setDirtyChangesEffect) { | 106 | if (setDirtyChangesEffect) { |
107 | const { value } = setDirtyChangesEffect; | 107 | const { value } = setDirtyChangesEffect; |
108 | if (this.pendingChanges !== undefined) { | 108 | if (this.pendingChanges !== undefined) { |