Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Fix jumpy action buttons in the editor panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 14, 2021
1 parent 512bc48 commit a59c7e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function App() {
</TabList>

<TabPanels overflow="hidden">
<TabPanel padding={0}>
<TabPanel padding={0} height="100%">
{sourceState.matches({
with_source: 'loading_content',
}) && (
Expand Down
6 changes: 1 addition & 5 deletions src/EditorPanel.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
[data-panel='editor'] {
max-height: 100vh;
height: 100%;
display: grid;
grid-template-rows: 1fr 3rem;
}

.vscode-editor {
height: 75vh; // TODO: figure out how to do this in Chakra
}
1 change: 0 additions & 1 deletion src/EditorWithXStateImports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const EditorWithXStateImports = (
defaultLanguage="typescript"
defaultValue={props.defaultValue}
theme="vs-dark"
className="vscode-editor"
options={{ readOnly: props.readonly }}
loading={<SpinnerWithText text="Preparing the editor" />}
onChange={(text) => {
Expand Down

0 comments on commit a59c7e0

Please sign in to comment.