diff options
Diffstat (limited to 'subprojects')
-rw-r--r-- | subprojects/frontend/src/editor/PanelStore.ts | 6 | ||||
-rw-r--r-- | subprojects/frontend/src/editor/SearchToolbar.tsx | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/subprojects/frontend/src/editor/PanelStore.ts b/subprojects/frontend/src/editor/PanelStore.ts index 1af4ace1..e0e2b2f4 100644 --- a/subprojects/frontend/src/editor/PanelStore.ts +++ b/subprojects/frontend/src/editor/PanelStore.ts | |||
@@ -100,12 +100,6 @@ export default class PanelStore { | |||
100 | 100 | ||
101 | protected doClose(): void { | 101 | protected doClose(): void { |
102 | this.store.doCommand(this.closeCommand); | 102 | this.store.doCommand(this.closeCommand); |
103 | if (this.element === undefined) { | ||
104 | return; | ||
105 | } | ||
106 | if (this.store.view !== undefined) { | ||
107 | log.error('Failed to remove search panel from DOM'); | ||
108 | } | ||
109 | this.element = undefined; | 103 | this.element = undefined; |
110 | } | 104 | } |
111 | } | 105 | } |
diff --git a/subprojects/frontend/src/editor/SearchToolbar.tsx b/subprojects/frontend/src/editor/SearchToolbar.tsx index 2840290b..dd7859c5 100644 --- a/subprojects/frontend/src/editor/SearchToolbar.tsx +++ b/subprojects/frontend/src/editor/SearchToolbar.tsx | |||
@@ -32,7 +32,7 @@ function SearchToolbar({ store }: { store: SearchPanelStore }): JSX.Element { | |||
32 | ); | 32 | ); |
33 | 33 | ||
34 | return ( | 34 | return ( |
35 | <Toolbar variant="dense" sx={{ py: 0.5, alignItems: 'start' }}> | 35 | <Toolbar variant="dense" sx={{ py: 0.5, alignItems: 'flex-start' }}> |
36 | <Stack | 36 | <Stack |
37 | direction="row" | 37 | direction="row" |
38 | flexWrap="wrap" | 38 | flexWrap="wrap" |
@@ -188,7 +188,7 @@ function SearchToolbar({ store }: { store: SearchPanelStore }): JSX.Element { | |||
188 | </Stack> | 188 | </Stack> |
189 | </Stack> | 189 | </Stack> |
190 | </Stack> | 190 | </Stack> |
191 | <IconButton onClick={() => store.close()} sx={{ ml: 1 }}> | 191 | <IconButton onClick={() => store.close()} sx={{ mt: '2px', ml: 1 }}> |
192 | <CloseIcon fontSize="small" /> | 192 | <CloseIcon fontSize="small" /> |
193 | </IconButton> | 193 | </IconButton> |
194 | </Toolbar> | 194 | </Toolbar> |