Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions admin/panels/static/admin.static.list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
<thead>
<tr>
{*<th>{$panelstrings.sel}</th>*}
<th>{$panelstrings.name}</th>
<th class="main-cell">{$panelstrings.title}</th>
<th>{$panelstrings.author}</th>
<th>{$panelstrings.action}</th>
<th scope="col">{$panelstrings.name}</th>
<th scope="col" class="main-cell">{$panelstrings.title}</th>
<th scope="col">{$panelstrings.author}</th>
<th scope="col">{$panelstrings.action}</th>
</tr>
</thead>

<tbody>
{static}
<tr>
{*<td><input type="checkbox"></td>*}
<td>{$id}</td>
<td data-label="{$panelstrings.name|escape:'html'}">{$id}</td>
<td class="main-cell">
<a class="link-general" href="{$panel_url|action_link:write}&amp;page={$id}">
{$subject|truncate:70|tag:the_title}
</a>
</td>

<td>{$author}</td>
<td>
<td data-label="{$panelstrings.author|escape:'html'}">{$author}</td>
<td data-label="{$panelstrings.action|escape:'html'}">
<a class="link-general" href="{$id|link:page_link}">
{$panelstrings.act_view}
</a>
Expand Down
2 changes: 1 addition & 1 deletion fp-includes/core/core.blogdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function bdb_parse_entry($id, $type = null) {
$__bdb_entry_cache [$file] = $entry;

// Fill APCu parsed-entry cache (bounded TTL)
if ($apcu_on && isset($mt) && $mt !== false) {
if ($apcu_on && $mt !== false) {
$sz = isset($sz) ? $sz : (int) @filesize($file);
$akey = 'fp:entry:parsed:' . basename($file) . ':' . $mt . ':' . $sz;
$ttl = max(0, (int) ($_ENV ['FP_APCU_ENTRY_TTL'] ?? 600));
Expand Down
110 changes: 108 additions & 2 deletions fp-interface/themes/leggero/stringendo/res/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1077,14 +1077,17 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu

body.admin-entry-list #admin-content table.entrylist tbody {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
/* Single-column fallback; cards must also fit containers narrower than 420px. */
grid-template-columns: minmax(0, 1fr);
grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
gap: var(--fp-space-3, .75rem);
padding: 0;
}

body.admin-entry-list #admin-content table.entrylist tr {
display: flex;
flex-direction: column;
min-width: 0;
margin: 0;
border: 1px solid var(--fp-border, #e2e8f0);
border-radius: var(--fp-radius-sm, 10px);
Expand All @@ -1095,6 +1098,9 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu

body.admin-entry-list #admin-content table.entrylist td {
display: flex;
min-width: 0;
overflow-wrap: break-word;
overflow-wrap: anywhere;
flex-wrap: wrap;
align-items: center;
gap: .75rem;
Expand Down Expand Up @@ -1144,6 +1150,11 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu
text-decoration: none;
}

body.admin-entry-list #admin-content table.entrylist td a {
min-width: 0;
max-width: 100%;
}

body.admin-entry-list #admin-content table.entrylist td.main-cell a:hover,
body.admin-entry-list #admin-content table.entrylist td.main-cell a:focus {
text-decoration: underline;
Expand All @@ -1160,7 +1171,7 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu
}

body.admin-entry-list #admin-content table.entrylist td:nth-child(5) a {
white-space: nowrap;
white-space: normal;
}

/* language-specific labels */
Expand Down Expand Up @@ -1250,6 +1261,101 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu
html[lang^="tr"] body.admin-entry-list #admin-content table.entrylist td:nth-child(5)::before { content: "Eylem"; }
}

/**
* Static page list: stacked cards on narrow screens.
* Labels use the panel translations supplied by admin.static.list.tpl.
*/
@media (max-width: 810px) {
body.admin-static-list #admin-content table.entrylist {
display: block;
width: 100%;
border: 0;
border-radius: 0;
box-shadow: none;
background: transparent;
overflow: visible;
}

/* Keep column headers available to assistive technology. */
body.admin-static-list #admin-content table.entrylist thead {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
}

body.admin-static-list #admin-content table.entrylist tbody {
display: block;
width: 100%;
}

body.admin-static-list #admin-content table.entrylist tbody tr {
display: flex;
flex-direction: column;
min-width: 0;
margin-bottom: var(--fp-space-3, .75rem);
border: 1px solid var(--fp-border, #e2e8f0);
border-radius: var(--fp-radius-sm, 10px);
background: var(--fp-surface, #ffffff);
box-shadow: var(--fp-shadow-sm, 0 2px 10px rgba(2, 6, 23, .06));
overflow: hidden;
}

body.admin-static-list #admin-content table.entrylist td {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .5rem .75rem;
width: auto;
min-width: 0;
padding: .75rem .95rem;
border: 0;
border-bottom: 1px solid var(--fp-border, #e2e8f0);
text-align: left;
line-height: 1.35;
white-space: normal;
overflow-wrap: break-word;
overflow-wrap: anywhere;
}

body.admin-static-list #admin-content table.entrylist td[data-label]::before {
content: attr(data-label);
min-width: 8.5rem;
max-width: 100%;
margin-right: auto;
font-weight: 500;
color: var(--fp-muted, #475569);
}

body.admin-static-list #admin-content table.entrylist td.main-cell {
order: -1;
display: block;
font-size: 1rem;
font-weight: 500;
background: var(--fp-surface-2, #f8fafc);
}

body.admin-static-list #admin-content table.entrylist td a {
min-width: 0;
max-width: 100%;
white-space: normal;
}

body.admin-static-list #admin-content table.entrylist td.main-cell a {
display: block;
}

body.admin-static-list #admin-content table.entrylist td:last-child {
justify-content: flex-end;
border-bottom: 0;
}
}

/* Keep action links in one line on desktop */
@media (min-width: 960px) {
#admin-content table.entrylist td:last-child {
Expand Down
2 changes: 1 addition & 1 deletion fp-plugins/mastodon/plugin.mastodon.php
Original file line number Diff line number Diff line change
Expand Up @@ -6655,7 +6655,7 @@ function plugin_mastodon_guess_subject($text) {
if ($line === '') {
continue;
}
if ($candidate === '' && plugin_mastodon_subject_line_is_noise($line)) {
if (plugin_mastodon_subject_line_is_noise($line)) {
continue;
}
$candidate = $line;
Expand Down
Loading