From 251ab71c3ac698c078ae48069f8baeb47e22594d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 27 Aug 2022 20:51:18 +0200 Subject: [PATCH] web/user: justify content on user settings page on desktop Signed-off-by: Jens Langhammer --- locale/en/LC_MESSAGES/django.po | 10 +++++----- web/src/user/user-settings/UserSettingsPage.ts | 11 ++++++++++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 9e223d6a6..b3dc84970 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-08-18 14:31+0000\n" +"POT-Creation-Date: 2022-08-27 18:46+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -43,12 +43,12 @@ msgstr "" msgid "Blueprint Instances" msgstr "" -#: authentik/blueprints/v1/exporter.py:50 +#: authentik/blueprints/v1/exporter.py:53 #, python-format msgid "authentik Export - %(date)s" msgstr "" -#: authentik/blueprints/v1/tasks.py:103 authentik/crypto/tasks.py:93 +#: authentik/blueprints/v1/tasks.py:104 authentik/crypto/tasks.py:93 #, python-format msgid "Successfully imported %(count)d files." msgstr "" @@ -353,7 +353,7 @@ msgstr "" msgid "Notification Webhook Mappings" msgstr "" -#: authentik/events/monitored_tasks.py:191 +#: authentik/events/monitored_tasks.py:195 msgid "Task has not been run yet." msgstr "" @@ -1234,7 +1234,7 @@ msgstr "" msgid "User OAuth Source Connections" msgstr "" -#: authentik/sources/oauth/views/callback.py:99 +#: authentik/sources/oauth/views/callback.py:100 msgid "Authentication Failed." msgstr "" diff --git a/web/src/user/user-settings/UserSettingsPage.ts b/web/src/user/user-settings/UserSettingsPage.ts index 06aeceb8c..ddc4577d1 100644 --- a/web/src/user/user-settings/UserSettingsPage.ts +++ b/web/src/user/user-settings/UserSettingsPage.ts @@ -4,7 +4,7 @@ import { EVENT_REFRESH } from "@goauthentik/web/constants"; import { t } from "@lingui/macro"; -import { CSSResult, LitElement, TemplateResult, html } from "lit"; +import { CSSResult, LitElement, TemplateResult, css, html } from "lit"; import { customElement, state } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { until } from "lit/directives/until.js"; @@ -51,6 +51,15 @@ export class UserSettingsPage extends LitElement { PFFormControl, PFStack, AKGlobal, + css` + @media screen and (min-width: 1200px) { + :host { + width: 90rem; + margin-left: auto; + margin-right: auto; + } + } + `, ]; }