Improve/fix label management (#6212)

* add the slider

* the styles

* add the title

* improve the column layout
This commit is contained in:
maTh 2024-04-01 11:43:22 +02:00 committed by GitHub
parent 1ae21260bb
commit c18987fae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 56 additions and 2 deletions

View File

@ -195,6 +195,8 @@ class FreshRSS_tag_Controller extends FreshRSS_ActionController {
}
public function indexAction(): void {
FreshRSS_View::prependTitle(_t('sub.menu.label_management') . ' · ');
if (!FreshRSS_Auth::hasAccess()) {
Minz_Error::error(403);
}

View File

@ -29,10 +29,30 @@
<?php if (count($this->tags) > 0): ?>
<h2><?= _t('gen.action.manage') ?></h2>
<ul>
<ul id="tagsList" <?= (count($this->tags) > 11) ? 'class="listInColumns"' : '' ?>>
<?php foreach ($this->tags as $tag): ?>
<li><a href="<?= _url('tag', 'update', 'id', $tag->id()) ?>"><?= $tag->name() ?></a></li>
<li>
<a href="<?= _url('tag', 'update', 'id', $tag->id()) ?>" class="configure open-slider" title="<?= _t('gen.action.manage') ?>">
<?= _i('configure') ?>
</a>
<?= $tag->name() ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</main>
<?php $class = isset($this->tag) ? ' active' : ''; ?>
<aside id="slider" class="<?= $class ?>">
<a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a>
<div id="slider-content">
<?php
if (isset($this->tag)) {
$this->renderHelper('tag/update');
}
?>
</div>
</aside>
<a href="#" id="close-slider">
<?= _i('close') ?>
</a>

View File

@ -97,6 +97,22 @@ ul, ol, dd {
padding: 0;
}
ul.listInColumns {
column-count: 5;
column-width: 250px;
max-width: 1700px;
}
ul.listInColumns li {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
#tagsList {
list-style: none;
}
/*=== Titles */
h1 {
margin: 1rem 0 0.5rem;

View File

@ -97,6 +97,22 @@ ul, ol, dd {
padding: 0;
}
ul.listInColumns {
column-count: 5;
column-width: 250px;
max-width: 1700px;
}
ul.listInColumns li {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
#tagsList {
list-style: none;
}
/*=== Titles */
h1 {
margin: 1rem 0 0.5rem;