mirror of
https://github.com/discourse/discourse.git
synced 2025-02-02 18:22:02 +08:00
UX: Tweak plugin and customize-based admin page margins (#30808)
Admin pages that are based off the customize or plugin templates were wrapped in the `admin-container` class, which has slightly different margins to the `admin-config-page` class, which is used on most admin pages. This change ensures that all the admin pages have the same alignment.
This commit is contained in:
parent
27f278253b
commit
99f5670c30
|
@ -58,6 +58,6 @@
|
||||||
</AdminNav>
|
</AdminNav>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
<div class="admin-container">
|
<div class="admin-config-page">
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
</div>
|
</div>
|
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="admin-container -no-header">
|
<div class="admin-config-page -no-header">
|
||||||
{{#each this.brokenAdminRoutes as |route|}}
|
{{#each this.brokenAdminRoutes as |route|}}
|
||||||
<div class="alert alert-error">
|
<div class="alert alert-error">
|
||||||
{{i18n "admin.plugins.broken_route" name=(i18n route.label)}}
|
{{i18n "admin.plugins.broken_route" name=(i18n route.label)}}
|
||||||
|
|
|
@ -47,7 +47,7 @@ acceptance("Admin - Plugins", function (needs) {
|
||||||
.hasText("Some Test Plugin", "displays the plugin in the table");
|
.hasText("Some Test Plugin", "displays the plugin in the table");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
.dom(".admin-plugins .admin-container .alert-error")
|
.dom(".admin-plugins .admin-config-page .alert-error")
|
||||||
.exists("shows an error for unknown routes");
|
.exists("shows an error for unknown routes");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
|
|
Loading…
Reference in New Issue
Block a user