fix: styles

This commit is contained in:
Artemy 2023-04-03 19:45:07 +03:00
parent e7564d4058
commit e2708f1985
2 changed files with 13 additions and 13 deletions

View file

@ -56,7 +56,7 @@
@apply p-1; @apply p-1;
@apply rounded-lg; @apply rounded-lg;
@apply bg-zinc-200 border-zinc-400; @apply bg-zinc-200 border-zinc-400;
@apply dark:bg-zinc-800 dark:border-zinc-600 overflow-scroll; @apply dark:bg-zinc-800 dark:border-zinc-600 overflow-auto;
} }
.md a { .md a {

View file

@ -10,9 +10,7 @@ function Settings() {
Настройки Настройки
</h1> </h1>
<h1 className="text-center lg:text-left leading-tight text-xl font-bold"> <SettingsPlaceholder text="Пользователь" />
Пользователь
</h1>
<SettingsTextInput <SettingsTextInput
placeholder="Имя" placeholder="Имя"
@ -32,9 +30,7 @@ function Settings() {
settingName="userStatus" settingName="userStatus"
/> />
<h1 className="text-center lg:text-left leading-tight text-xl font-bold"> <SettingsPlaceholder text="Заметки" />
Заметки
</h1>
<SettingsCheckBox <SettingsCheckBox
label="Редактирование в предпросмотре" label="Редактирование в предпросмотре"
@ -50,9 +46,7 @@ function Settings() {
settingName="publicNote" settingName="publicNote"
/> />
<h1 className="text-center lg:text-left leading-tight text-xl font-bold"> <SettingsPlaceholder text="Интерфейс" />
Интерфейс
</h1>
<SettingsSelectInput <SettingsSelectInput
label="Язык" label="Язык"
@ -69,9 +63,7 @@ function Settings() {
]} ]}
/> />
<h1 className="text-center lg:text-left leading-tight text-xl font-bold"> <SettingsPlaceholder text="Стороннее API" />
Стороннее API
</h1>
<SettingsTextInput <SettingsTextInput
placeholder="Ключ" placeholder="Ключ"
@ -83,4 +75,12 @@ function Settings() {
); );
} }
function SettingsPlaceholder({ text }) {
return (
<h1 className="text-center lg:text-left leading-tight text-xl font-semibold">
{text}
</h1>
);
}
export default Settings; export default Settings;