Skip to content

Commit

Permalink
margins in feed navigation bar (#5695)
Browse files Browse the repository at this point in the history
Co-authored-by: math-gh <>
  • Loading branch information
math-GH committed Oct 9, 2023
1 parent 573e8e7 commit 6f22845
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 16 deletions.
16 changes: 6 additions & 10 deletions app/layout/aside_feed.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@
<ul id="sidebar" class="tree scrollbar-thin">
<li class="tree-folder category all<?= FreshRSS_Context::isCurrentGet('a') ? ' active' : '' ?>">
<div class="tree-folder-title">
<?= _i('all') ?> <a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_unread) ?>" href="<?=
<?= _i('all') ?><a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_unread) ?>" href="<?=
_url('index', $actual_view) . $state_filter_manual ?>"><?= _t('index.menu.main_stream') ?></a>
</div>
</li>

<li class="tree-folder category favorites<?= FreshRSS_Context::isCurrentGet('s') ? ' active' : '' ?>">
<div class="tree-folder-title">
<?= _i('starred') ?>
<a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_starred['unread']) ?>" href="<?= _url('index', $actual_view, 'get', 's') . $state_filter_manual ?>">
<?= _i('starred') ?><a class="title" data-unread="<?= format_number(FreshRSS_Context::$total_starred['unread']) ?>" href="<?= _url('index', $actual_view, 'get', 's') . $state_filter_manual ?>">
<?= _t('index.menu.favorites', format_number(FreshRSS_Context::$total_starred['all'])) ?>
</a>
</div>
Expand All @@ -50,8 +49,7 @@
?>
<li id="tags" class="tree-folder category tags<?= $t_active ? ' active' : '' ?>" data-unread="<?= format_number($this->nbUnreadTags) ?>">
<div class="tree-folder-title">
<a class="dropdown-toggle" href="#"><?= _i($t_show ? 'up' : 'down') ?></a>
<a class="title" data-unread="<?= format_number($this->nbUnreadTags) ?>" href="<?= _url('index', $actual_view, 'get', 'T') . $state_filter_manual ?>"><?= _t('index.menu.tags') ?></a>
<a class="dropdown-toggle" href="#"><?= _i($t_show ? 'up' : 'down') ?></a><a class="title" data-unread="<?= format_number($this->nbUnreadTags) ?>" href="<?= _url('index', $actual_view, 'get', 'T') . $state_filter_manual ?>"><?= _t('index.menu.tags') ?></a>
</div>
<ul class="tree-folder-items<?= $t_show ? ' active' : '' ?>">
<?php
Expand Down Expand Up @@ -87,8 +85,7 @@
<li id="c_<?= $cat->id() ?>" class="tree-folder category<?= $c_active ? ' active' : '' ?>"<?=
null === $position ? '' : " data-position='$position'" ?> data-unread="<?= $cat->nbNotRead() ?>">
<div class="tree-folder-title">
<a class="dropdown-toggle" href="#"><?= _i($c_show ? 'up' : 'down') ?></a>
<a class="title<?= $cat->hasFeedsWithError() ? ' error' : '' ?>" data-unread="<?=
<a class="dropdown-toggle" href="#"><?= _i($c_show ? 'up' : 'down') ?></a><a class="title<?= $cat->hasFeedsWithError() ? ' error' : '' ?>" data-unread="<?=
format_number($cat->nbNotRead()) ?>" href="<?= _url('index', $actual_view, 'get', 'c_' . $cat->id()) . $state_filter_manual ?>"><?=
$cat->name()
?><?php if ($cat->kind() == FreshRSS_Category::KIND_DYNAMIC_OPML) { echo _i('opml-dyn'); } ?></a>
Expand Down Expand Up @@ -121,9 +118,8 @@
if ($f_active || $nbFeedsTotal < FreshRSS_Context::$user_conf->simplify_over_n_feeds):
?><div class="dropdown no-mobile">
<div class="dropdown-target"></div><a class="dropdown-toggle" data-fweb="<?= $feed->website() ?>"><?= _i('configure') ?></a><?php /* feed_config_template */ ?>
</div>
<?php
if (FreshRSS_Context::$user_conf->show_favicons) { ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="" loading="lazy" /><?php }
</div><?php
if (FreshRSS_Context::$user_conf->show_favicons) { ?><img class="favicon test" src="<?= $feed->favicon() ?>" alt="" loading="lazy" /><?php }
endif;
?><a class="item-title" data-unread="<?= format_number($feed->nbNotRead()) ?>" href="<?=
_url('index', $actual_view, 'get', 'f_' . $feed->id()) . $state_filter_manual ?>"><?= $feed->name() ?></a></li>
Expand Down
2 changes: 1 addition & 1 deletion p/themes/Pafat/pafat.css
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ form th {
padding: 0.125rem 0.75rem;
}


.aside_feed .tree-folder-items > .item.feed {
padding-left: 0.5rem;
font-size: 0.8rem;
}

Expand Down
2 changes: 1 addition & 1 deletion p/themes/Pafat/pafat.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ form th {
padding: 0.125rem 0.75rem;
}


.aside_feed .tree-folder-items > .item.feed {
padding-right: 0.5rem;
font-size: 0.8rem;
}

Expand Down
19 changes: 17 additions & 2 deletions p/themes/base-theme/frss.css
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,18 @@ input[type="search"] {
width: calc(100% - 75px);
}

.aside_feed .tree-folder-title .icon {
padding: 0 0.25rem;
.aside_feed .tree-folder.category .tree-folder-title .title.error .icon {
margin: 0 0.5rem;
padding: 0;
}

.aside_feed .tree-folder-title .icon,
.aside_feed .tree-folder-items .feed .icon {
padding: 0 0.5rem 0 0;
}

.aside_feed .tree-folder-items .feed .favicon {
padding: 0;
}

.aside_feed .tree-folder-items .item.feed {
Expand Down Expand Up @@ -2317,6 +2327,11 @@ html.slider-active {
margin-top: 10px;
}

.aside_feed .tree-folder-items .feed .favicon {
margin: 0;
padding: 0 0.5rem 0 0;
}

.flux_header .item.website {
width: 40px;
}
Expand Down
19 changes: 17 additions & 2 deletions p/themes/base-theme/frss.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,18 @@ input[type="search"] {
width: calc(100% - 75px);
}

.aside_feed .tree-folder-title .icon {
padding: 0 0.25rem;
.aside_feed .tree-folder.category .tree-folder-title .title.error .icon {
margin: 0 0.5rem;
padding: 0;
}

.aside_feed .tree-folder-title .icon,
.aside_feed .tree-folder-items .feed .icon {
padding: 0 0 0 0.5rem;
}

.aside_feed .tree-folder-items .feed .favicon {
padding: 0;
}

.aside_feed .tree-folder-items .item.feed {
Expand Down Expand Up @@ -2317,6 +2327,11 @@ html.slider-active {
margin-top: 10px;
}

.aside_feed .tree-folder-items .feed .favicon {
margin: 0;
padding: 0 0 0 0.5rem;
}

.flux_header .item.website {
width: 40px;
}
Expand Down

0 comments on commit 6f22845

Please sign in to comment.