mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
feat: adjust spacing
This commit is contained in:
parent
5d0e825880
commit
d1fa4895e4
@ -271,7 +271,7 @@
|
|||||||
"show_hidden_achievement_description": "Mostrar descrição de conquistas ocultas antes de debloqueá-las",
|
"show_hidden_achievement_description": "Mostrar descrição de conquistas ocultas antes de debloqueá-las",
|
||||||
"account": "Conta",
|
"account": "Conta",
|
||||||
"no_users_blocked": "Você não bloqueou nenhum usuário",
|
"no_users_blocked": "Você não bloqueou nenhum usuário",
|
||||||
"subscription_active_until": "Sua assinatura Hydra Cloud estará ativa até {{date}}",
|
"subscription_active_until": "Sua assinatura Hydra Cloud ficará ativa até {{date}}",
|
||||||
"manage_subscription": "Gerenciar assinatura",
|
"manage_subscription": "Gerenciar assinatura",
|
||||||
"update_email": "Atualizar email",
|
"update_email": "Atualizar email",
|
||||||
"update_password": "Atualizar senha",
|
"update_password": "Atualizar senha",
|
||||||
|
@ -5,7 +5,7 @@ import { SPACING_UNIT, vars } from "../../theme.css";
|
|||||||
export const form = style({
|
export const form = style({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT * 3}px`,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const blockedUser = style({
|
export const blockedUser = style({
|
||||||
@ -36,5 +36,4 @@ export const blockedUsersList = style({
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "flex-start",
|
alignItems: "flex-start",
|
||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
marginTop: `${SPACING_UNIT}px`,
|
|
||||||
});
|
});
|
||||||
|
@ -158,7 +158,7 @@ export function SettingsAccount() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<section>
|
||||||
<SelectField
|
<SelectField
|
||||||
label={t("profile_visibility")}
|
label={t("profile_visibility")}
|
||||||
value={field.value}
|
value={field.value}
|
||||||
@ -172,15 +172,14 @@ export function SettingsAccount() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<small>{t("profile_visibility_description")}</small>
|
<small>{t("profile_visibility_description")}</small>
|
||||||
</>
|
</section>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div style={{ marginTop: `${SPACING_UNIT * 2}px` }}>
|
<section>
|
||||||
<h4>{t("current_email")}</h4>
|
<h4>{t("current_email")}</h4>
|
||||||
<p>{userDetails?.email ?? t("no_email_account")}</p>
|
<p>{userDetails?.email ?? t("no_email_account")}</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
@ -188,7 +187,7 @@ export function SettingsAccount() {
|
|||||||
justifyContent: "start",
|
justifyContent: "start",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
marginTop: 8,
|
marginTop: `${SPACING_UNIT * 2}px`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
@ -209,35 +208,50 @@ export function SettingsAccount() {
|
|||||||
{t("update_password")}
|
{t("update_password")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "column",
|
||||||
|
gap: `${SPACING_UNIT * 2}px`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h3>Hydra Cloud</h3>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginTop: `${SPACING_UNIT * 2}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
gap: `${SPACING_UNIT / 2}px`,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h3>Hydra Cloud</h3>
|
|
||||||
{getHydraCloudSectionContent().description}
|
{getHydraCloudSectionContent().description}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
style={{ placeSelf: "flex-start", marginTop: 8 }}
|
style={{
|
||||||
|
placeSelf: "flex-start",
|
||||||
|
}}
|
||||||
theme="outline"
|
theme="outline"
|
||||||
onClick={() => window.electron.openCheckout()}
|
onClick={() => window.electron.openCheckout()}
|
||||||
>
|
>
|
||||||
<CloudIcon />
|
<CloudIcon />
|
||||||
{getHydraCloudSectionContent().callToAction}
|
{getHydraCloudSectionContent().callToAction}
|
||||||
</Button>
|
</Button>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h3 style={{ marginTop: `${SPACING_UNIT * 2}px` }}>
|
<section
|
||||||
{t("blocked_users")}
|
style={{
|
||||||
</h3>
|
display: "flex",
|
||||||
|
flexDirection: "column",
|
||||||
|
gap: `${SPACING_UNIT * 2}px`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h3>{t("blocked_users")}</h3>
|
||||||
|
|
||||||
<ul className={styles.blockedUsersList}>
|
|
||||||
{blockedUsers.length > 0 ? (
|
{blockedUsers.length > 0 ? (
|
||||||
blockedUsers.map((user) => {
|
<ul className={styles.blockedUsersList}>
|
||||||
|
{blockedUsers.map((user) => {
|
||||||
return (
|
return (
|
||||||
<li key={user.id} className={styles.blockedUser}>
|
<li key={user.id} className={styles.blockedUser}>
|
||||||
<div
|
<div
|
||||||
@ -266,11 +280,12 @@ export function SettingsAccount() {
|
|||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
})
|
})}
|
||||||
|
</ul>
|
||||||
) : (
|
) : (
|
||||||
<small>{t("no_users_blocked")}</small>
|
<small>{t("no_users_blocked")}</small>
|
||||||
)}
|
)}
|
||||||
</ul>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user