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

View File

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

View File

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