Skip to content

Commit

Permalink
feat: use color preview for PWA colors, improve admin page styling
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
  • Loading branch information
askvortsov1 committed Apr 13, 2023
1 parent 882efc1 commit 4f605c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/src/admin/components/PWAPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ export default class PWAPage extends ExtensionPage {
placeholder: this.setting('theme_primary_color')(),
label: app.translator.trans('askvortsov-pwa.admin.pwa.colors.theme_color_label'),
help: app.translator.trans('askvortsov-pwa.admin.pwa.colors.theme_color_text'),
type: 'text',
type: 'color-preview',
})}
</fieldset>
<fieldset>
{this.buildSettingComponent({
setting: 'askvortsov-pwa.backgroundColor',
label: app.translator.trans('askvortsov-pwa.admin.pwa.colors.background_color_label'),
help: app.translator.trans('askvortsov-pwa.admin.pwa.colors.background_color_text'),
type: 'text',
type: 'color-preview',
})}
</fieldset>
</fieldset>
Expand Down
10 changes: 6 additions & 4 deletions resources/less/admin.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.PWAPage {
input,
textarea {
width: 49%;
@media @desktop-up {
.container {
max-width: 600px;
margin: 0;
}
}
fieldset {
margin: 30px 0;
Expand All @@ -23,4 +25,4 @@
.statusCheck .Alert {
margin: 10px 0;
}
}
}

0 comments on commit 4f605c8

Please sign in to comment.