aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-04-11 22:54:19 +0200
committerGravatar GitHub <noreply@github.com> 2022-04-11 22:54:19 +0200
commit4191f9859ec1ec524167478c6fffce1da219a8fe (patch)
treedb217aac6ca719c7e9121f33d8d5be10de917234 /app
parent5e28bf8b403205642cf09aad5ef47ed1aa781a5d (diff)
Improved: dropdown close area (#4293)
* fix Ansum theme: close X in white * fix Mapco theme: close X in white * move the dropdown-close outside of the list * CSS * bring flux elemt behind the grey background * Update main.js
Diffstat (limited to 'app')
-rw-r--r--app/layout/aside_feed.phtml4
-rw-r--r--app/layout/header.phtml3
-rw-r--r--app/layout/nav_menu.phtml6
-rw-r--r--app/views/helpers/index/normal/entry_bottom.phtml8
4 files changed, 10 insertions, 11 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml
index 10dc8e724..b1218561c 100644
--- a/app/layout/aside_feed.phtml
+++ b/app/layout/aside_feed.phtml
@@ -122,18 +122,17 @@
<script id="tag_config_template" type="text/html">
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li>
<li class="item">
<button class="as-link confirm" disabled="disabled"
form="mark-read-aside" formaction="<?= _url('tag', 'delete', 'id_tag', '------') ?>"
type="submit"><?= _t('gen.action.remove') ?></button>
</li>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</script>
<script id="feed_config_template" type="text/html">
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li>
<li class="item"><a href="<?= _url('index', $actual_view, 'get', 'f_------') ?>"><?= _t('gen.action.filter') ?></a></li>
<?php if (FreshRSS_Auth::hasAccess()) { ?>
<li class="item"><a href="<?= _url('stats', 'repartition', 'id', '------') ?>"><?= _t('index.menu.stats') ?></a></li>
@@ -160,4 +159,5 @@
</li>
<?php } ?>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</script>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index e872a5918..6040df2d3 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -40,7 +40,7 @@
<a class="btn dropdown-toggle" href="#dropdown-configure"><?= _i('configure') ?></a>
<ul class="dropdown-menu scrollbar-thin">
<li class="dropdown-header-close"><a class="toggle_aside" href="#close"><?= _i('close') ?></a></li>
- <li class="dropdown-close"><a href="#close">❌</a></li>
+
<li class="dropdown-header"><?= _t('gen.menu.account') ?>: <?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?></li>
<li class="item"><a href="<?= _url('user', 'profile') ?>"><?= _t('gen.menu.user_profile') ?></a></li>
<?php if (FreshRSS_Auth::accessNeedsAction()): ?>
@@ -77,6 +77,7 @@
<li class="item"><a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a></li>
<?= Minz_ExtensionManager::callHook('menu_other_entry') ?>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
</nav>
<?php } elseif (FreshRSS_Auth::accessNeedsAction()) { ?>
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index 7fa7ad7cf..77bda8e27 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -34,8 +34,6 @@
<a class="dropdown-toggle btn" href="#dropdown-query" title="<?= _t('index.menu.queries') ?>"><?= _i('bookmark-tag') ?></a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li>
-
<li class="dropdown-header">
<?= _t('index.menu.queries') ?>
<a href="<?= _url('configure', 'queries') ?>"><?= _i('configure') ?></a>
@@ -58,6 +56,7 @@
?>
<li class="item"><a href="<?= Minz_Url::display($url_query) ?>"><?= _i('bookmark-add') ?> <?= _t('index.menu.bookmark_query') ?></a></li>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
</div>
@@ -102,8 +101,6 @@
<a class="dropdown-toggle btn" href="#dropdown-read"><?= _i('down') ?></a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li>
-
<li class="item">
<button class="as-link <?= $confirm ?>"
form="mark-read-menu"
@@ -139,6 +136,7 @@
type="submit"><?= $string_unmark ?></button>
</li>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
</form>
</div>
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml
index 220fc5f62..8508acf71 100644
--- a/app/views/helpers/index/normal/entry_bottom.phtml
+++ b/app/views/helpers/index/normal/entry_bottom.phtml
@@ -45,10 +45,9 @@
echo _t('index.menu.tags');
?></a>
<ul class="dropdown-menu dropdown-menu-scrollable scrollbar-thin">
- <li class="dropdown-close"><a href="#close">❌</a></li>
<!-- Ajax -->
</ul>
- <div class="dropdown-close"><a href="#close">❌</a></div>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
</li><?php
}
@@ -62,11 +61,12 @@
echo _t('index.tag.related');
?></a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li><?php
+ <?php
foreach ($tags as $tag) {
?><li class="item"><a href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>"><?= $tag ?></a></li><?php
} ?>
</ul>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
</li><?php
}
@@ -80,7 +80,6 @@
</a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close">❌</a></li>
<li class="dropdown-header"><?= _t('index.share') ?> <a href="<?= _url('configure', 'integration') ?>"><?= _i('configure') ?></a></li><?php
$id = $this->entry->id();
$link = $this->entry->link();
@@ -112,6 +111,7 @@
</li><?php
}
?></ul>
+ <a class="dropdown-close" href="#close">❌</a>
</div>
<?php } ?>
</li><?php