diff --git a/admin/panels/static/admin.static.list.tpl b/admin/panels/static/admin.static.list.tpl
index 8940abe7..ea14f234 100644
--- a/admin/panels/static/admin.static.list.tpl
+++ b/admin/panels/static/admin.static.list.tpl
@@ -14,10 +14,10 @@
{*| {$panelstrings.sel} | *}
- {$panelstrings.name} |
- {$panelstrings.title} |
- {$panelstrings.author} |
- {$panelstrings.action} |
+ {$panelstrings.name} |
+ {$panelstrings.title} |
+ {$panelstrings.author} |
+ {$panelstrings.action} |
@@ -25,15 +25,15 @@
{static}
{* | *}
- {$id} |
+ {$id} |
{$subject|truncate:70|tag:the_title}
|
- {$author} |
-
+ | {$author} |
+
{$panelstrings.act_view}
diff --git a/fp-includes/core/core.blogdb.php b/fp-includes/core/core.blogdb.php
index e782aa3d..ccccce60 100755
--- a/fp-includes/core/core.blogdb.php
+++ b/fp-includes/core/core.blogdb.php
@@ -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));
diff --git a/fp-interface/themes/leggero/stringendo/res/admin.css b/fp-interface/themes/leggero/stringendo/res/admin.css
index 28ebc26b..2284cd56 100644
--- a/fp-interface/themes/leggero/stringendo/res/admin.css
+++ b/fp-interface/themes/leggero/stringendo/res/admin.css
@@ -1077,7 +1077,9 @@ 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;
}
@@ -1085,6 +1087,7 @@ body[class^="admin-entry-"] #admin-content form[action*="p=entry"] fieldset inpu
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);
@@ -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;
@@ -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;
@@ -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 */
@@ -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 {
diff --git a/fp-plugins/mastodon/plugin.mastodon.php b/fp-plugins/mastodon/plugin.mastodon.php
index 36e11ea5..13517324 100644
--- a/fp-plugins/mastodon/plugin.mastodon.php
+++ b/fp-plugins/mastodon/plugin.mastodon.php
@@ -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;
|