1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Styling Editor and Extensions pages

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-11-22 11:21:34 +03:00
parent 83841aae90
commit eb29b2d8ee
3 changed files with 10 additions and 7 deletions

View File

@ -42,7 +42,7 @@ export const Editor = observer(() => {
<h2 data-testid="editor-configuration-header">Editor configuration</h2>
<SubTitle title="Minimap"/>
<section>
<section className="mb-12">
<div className="flex gaps justify-space-between">
<div className="flex gaps align-center">
<FormSwitch
@ -67,7 +67,9 @@ export const Editor = observer(() => {
</div>
</section>
<section>
<hr className="mb-12"/>
<section className="mb-12">
<SubTitle title="Line numbers"/>
<Select
options={Object.entries(EditorLineNumbersStyles).map(([value, label]) => ({ label, value }))}
@ -77,6 +79,8 @@ export const Editor = observer(() => {
/>
</section>
<hr className="mb-12"/>
<section>
<SubTitle title="Tab size"/>
<Input
@ -91,4 +95,3 @@ export const Editor = observer(() => {
</section>
);
});

View File

@ -109,14 +109,14 @@ export class Preferences extends React.Component {
export function ExtensionSettings({ title, id, components: { Hint, Input }}: RegisteredAppPreference) {
return (
<React.Fragment>
<section id={id} className="small">
<section id={id} className="mb-12">
<SubTitle title={title}/>
<Input/>
<div className="hint">
<div className="pt-4">
<Hint/>
</div>
</section>
<hr className="small"/>
<hr className="mb-12"/>
</React.Fragment>
);
}

View File

@ -27,7 +27,7 @@ const useStyles = makeStyles({
root: {
margin: 0,
"& .MuiTypography-root": {
fontSize: 16,
fontSize: 14,
fontWeight: 500,
flex: 1,
color: "var(--textColorAccent)",