fix settings style for right panel
This commit is contained in:
parent
dabc0331cb
commit
195e6b61f9
1 changed files with 16 additions and 16 deletions
|
|
@ -430,14 +430,21 @@ function SettingsTab({ scheduler }) {
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-4">
|
<FormItem label="Keybindings">
|
||||||
<FormItem label="Keybindings">
|
<ButtonGroup
|
||||||
<ButtonGroup
|
value={keybindings}
|
||||||
value={keybindings}
|
onChange={(keybindings) => settingsMap.setKey('keybindings', keybindings)}
|
||||||
onChange={(keybindings) => settingsMap.setKey('keybindings', keybindings)}
|
items={{ codemirror: 'Codemirror', vim: 'Vim', emacs: 'Emacs' }}
|
||||||
items={{ codemirror: 'Codemirror', vim: 'Vim', emacs: 'Emacs' }}
|
></ButtonGroup>
|
||||||
></ButtonGroup>
|
</FormItem>
|
||||||
</FormItem>
|
<FormItem label="Footer Position">
|
||||||
|
<ButtonGroup
|
||||||
|
value={panelPosition}
|
||||||
|
onChange={(value) => settingsMap.setKey('panelPosition', value)}
|
||||||
|
items={{ bottom: 'Bottom', right: 'Right' }}
|
||||||
|
></ButtonGroup>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="Code Settings">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label="Display line numbers"
|
label="Display line numbers"
|
||||||
onChange={(cbEvent) => settingsMap.setKey('isLineNumbersDisplayed', cbEvent.target.checked)}
|
onChange={(cbEvent) => settingsMap.setKey('isLineNumbersDisplayed', cbEvent.target.checked)}
|
||||||
|
|
@ -453,14 +460,7 @@ function SettingsTab({ scheduler }) {
|
||||||
onChange={(cbEvent) => settingsMap.setKey('isLineWrappingEnabled', cbEvent.target.checked)}
|
onChange={(cbEvent) => settingsMap.setKey('isLineWrappingEnabled', cbEvent.target.checked)}
|
||||||
value={isLineWrappingEnabled}
|
value={isLineWrappingEnabled}
|
||||||
/>
|
/>
|
||||||
<FormItem label="Footer Position">
|
</FormItem>
|
||||||
<ButtonGroup
|
|
||||||
value={panelPosition}
|
|
||||||
onChange={(value) => settingsMap.setKey('panelPosition', value)}
|
|
||||||
items={{ bottom: 'Bottom', right: 'Right' }}
|
|
||||||
></ButtonGroup>
|
|
||||||
</FormItem>
|
|
||||||
</div>
|
|
||||||
<FormItem label="Reset Settings">
|
<FormItem label="Reset Settings">
|
||||||
<button
|
<button
|
||||||
className="bg-background p-2 max-w-[300px] rounded-md hover:opacity-50"
|
className="bg-background p-2 max-w-[300px] rounded-md hover:opacity-50"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue