Skip to content

Commit 8702374

Browse files
authored
Merge pull request #46787 from nextcloud/backport/46773/stable29
[stable29] style(settings): align icons at legacy help navigation
2 parents a6b201e + 92122d4 commit 8702374

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

apps/settings/css/help.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22
overflow: hidden !important;
33
}
44

5+
.help-list__link {
6+
display: flex;
7+
align-items: center;
8+
height: var(--default-clickable-area);
9+
margin: 0 8px;
10+
background-position: left center;
11+
}
12+
513
.help-list__text {
6-
margin-left: 24px;
14+
margin-left: 20px;
715
}
816

917
.help-iframe {

apps/settings/templates/help.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div id="app-navigation" role="navigation" tabindex="0">
66
<ul>
77
<li>
8-
<a class="icon-user <?php if ($_['mode'] === 'user') {
8+
<a class="help-list__link icon-user <?php if ($_['mode'] === 'user') {
99
p('active');
1010
} ?>" <?php if ($_['mode'] === 'user') {
1111
print_unescaped('aria-current="page"');
@@ -18,7 +18,7 @@
1818
</li>
1919
<?php if ($_['admin']) { ?>
2020
<li>
21-
<a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
21+
<a class="help-list__link icon-user-admin <?php if ($_['mode'] === 'admin') {
2222
p('active');
2323
} ?>" <?php if ($_['mode'] === 'admin') {
2424
print_unescaped('aria-current="page"');
@@ -32,14 +32,14 @@
3232
<?php } ?>
3333

3434
<li>
35-
<a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener">
35+
<a href="https://docs.nextcloud.com" class="help-list__link icon-category-office" target="_blank" rel="noreferrer noopener">
3636
<span class="help-list__text">
3737
<?php p($l->t('Documentation')); ?>
3838
</span>
3939
</a>
4040
</li>
4141
<li>
42-
<a href="https://help.nextcloud.com" class="icon-comment" target="_blank" rel="noreferrer noopener">
42+
<a href="https://help.nextcloud.com" class="help-list__link icon-comment" target="_blank" rel="noreferrer noopener">
4343
<span class="help-list__text">
4444
<?php p($l->t('Forum')); ?>
4545
</span>

0 commit comments

Comments
 (0)