Skip to content

Commit 957d19a

Browse files
committed
Settings styling
1 parent 88a80ed commit 957d19a

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

src/programs/Settings/Settings.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,26 @@
88

99
&__page {
1010
overflow: auto;
11+
12+
&-sections {
13+
margin: 20px;
14+
display: flex;
15+
flex-direction: column;
16+
gap: 20px;
17+
&:last-of-type ~ hr {
18+
display: none;
19+
}
20+
}
21+
22+
&-section {
23+
h1 {
24+
margin: 0;
25+
font-size: 18px;
26+
}
27+
28+
&__value {
29+
width: 100%;
30+
}
31+
}
1132
}
1233
}

src/programs/Settings/Settings.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AppSideBar from "../../components/AppSideBar";
22
import { getPages } from "./settingsPageConfig";
33

44
import "./Settings.scss";
5-
import { HTMLInputTypeAttribute, useRef, useState } from "react";
5+
import { HTMLInputTypeAttribute, useState } from "react";
66
import useSystemSettings from "../../stores/systemSettingsStore";
77

88
interface SettingsSectionProps {
@@ -28,9 +28,12 @@ function SettingsSection(section: SettingsSectionProps) {
2828
}
2929
return (
3030
<div className="settings__page-section">
31-
<h1>{section.title}</h1>
32-
<p>{section.description}</p>
31+
<h1 className="settings__page-section__title">{section.title}</h1>
32+
<p className="settings__page-section__description">
33+
{section.description}
34+
</p>
3335
<input
36+
className="settings__page-section__value"
3437
type={getInputType(section.type)}
3538
value={String(section.currentValue)}
3639
onChange={(e) => {

0 commit comments

Comments
 (0)