Skip to content

Commit 60147a4

Browse files
committed
Correct list actions
1 parent edec00c commit 60147a4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/listactions/la_tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static function render(PaperList $pl, Qrequest $qreq, $plft) {
2727
$t .= '<span class="fx98"><button type="button" class="q ui js-foldup" data-fold-target="99">'
2828
. expander(null, 99) . "</button></span>";
2929
}
30-
$t .= 'tag<span class="fn98">(s)</span> &nbsp;'
30+
$t .= '<span class="px-1">tag<span class="fn98">(s)</span></span> '
3131
. Ht::entry("tag", $qreq->tag,
3232
["size" => 15, "class" => "want-focus js-autosubmit js-submit-action-info-tag need-suggest tags", "data-submit-fn" => "tag"])
3333
. $pl->action_submit("tag");

src/paperlist.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,14 +2008,9 @@ static function render_footer_row($arrow_ncol, $ncol, $header, $plfts) {
20082008
}
20092009

20102010
foreach ($plfts as $i => $plft) {
2011-
if (isset($plft->tab_attr["class"])) {
2012-
$plft->tab_attr["class"] = "linelink " . $plft->tab_attr["class"];
2013-
} else {
2014-
$plft->tab_attr["class"] = "linelink";
2015-
}
2016-
if ($plft->active) {
2017-
$plft->tab_attr["class"] .= " active";
2018-
}
2011+
$plft->tab_attr["class"] = Ht::add_tokens("linelink pl-footer-part",
2012+
$plft->tab_attr["class"] ?? null,
2013+
$plft->active ? "active" : null);
20192014
$foot .= "<div";
20202015
foreach ($plft->tab_attr as $k => $v) {
20212016
$foot .= " {$k}=\"" . htmlspecialchars($v) . "\"";

stylesheets/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ p + .nearby {
768768
padding-right: 2.25em !important;
769769
padding-right: 2.25rem !important;
770770
}
771+
.px-1 {
772+
padding-left: 0.25rem;
773+
padding-right: 0.25rem;
774+
}
771775

772776
.text-start {
773777
text-align: start;

0 commit comments

Comments
 (0)