Skip to content

Commit 57de634

Browse files
committed
Fixed markdown issues which were occuring specifically while in the mobile view
Minor directory spec error
1 parent cce21ad commit 57de634

17 files changed

Lines changed: 62 additions & 22 deletions

File tree

.github/scripts/normalize-production-permissions.sh

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,33 @@ while IFS= read -r -d '' path; do
5353
setfacl -m u::rw-,g::r--,g:"$shared_group":r--,m::r--,o::--- "$path"
5454
done < <(find "$TARGET" -path "$data_dir" -prune -o -type f -user "$deploy_user" -print0)
5555

56-
# Runtime data is shared read/write between http and deploy. Existing files are
57-
# normalized and default ACLs make newly-created paths inherit the same access.
58-
sudo -n -u "$runtime_user" find "$data_dir" -type d -exec chmod 2770 {} +
59-
sudo -n -u "$runtime_user" find "$data_dir" -type f -exec chmod 0660 {} +
60-
sudo -n -u "$runtime_user" setfacl -R -m u::rwX,g::rwX,g:"$shared_group":rwX,m::rwX,o::--- "$data_dir"
61-
sudo -n -u "$runtime_user" find "$data_dir" -type d -exec \
56+
# Runtime data is shared read/write between http and deploy. Normalize paths as
57+
# their actual owner so a file intentionally added by deploy does not make the
58+
# next deployment fail. Default ACLs keep future paths accessible to both.
59+
find "$data_dir" -user "$deploy_user" -exec chgrp "$shared_group" {} +
60+
find "$data_dir" -type d -user "$deploy_user" -exec chmod 2770 {} +
61+
find "$data_dir" -type f -user "$deploy_user" -exec chmod 0660 {} +
62+
find "$data_dir" -user "$deploy_user" -exec \
63+
setfacl -m u::rwX,g::rwX,g:"$shared_group":rwX,m::rwX,o::--- {} +
64+
find "$data_dir" -type d -user "$deploy_user" -exec \
6265
setfacl -d -m u::rwx,g::rwx,g:"$shared_group":rwx,m::rwx,o::--- {} +
6366

67+
sudo -n -u "$runtime_user" find "$data_dir" -user "$runtime_user" -exec chgrp "$shared_group" {} +
68+
sudo -n -u "$runtime_user" find "$data_dir" -type d -user "$runtime_user" -exec chmod 2770 {} +
69+
sudo -n -u "$runtime_user" find "$data_dir" -type f -user "$runtime_user" -exec chmod 0660 {} +
70+
sudo -n -u "$runtime_user" find "$data_dir" -user "$runtime_user" -exec \
71+
setfacl -m u::rwX,g::rwX,g:"$shared_group":rwX,m::rwX,o::--- {} +
72+
sudo -n -u "$runtime_user" find "$data_dir" -type d -user "$runtime_user" -exec \
73+
setfacl -d -m u::rwx,g::rwx,g:"$shared_group":rwx,m::rwx,o::--- {} +
74+
75+
unexpected_owner="$(find "$data_dir" ! -user "$deploy_user" ! -user "$runtime_user" -print -quit)"
76+
if [[ -n "$unexpected_owner" ]]; then
77+
echo "unexpected owner beneath data: $unexpected_owner" >&2
78+
stat -c '%U:%G %a %n' "$unexpected_owner" >&2 || true
79+
echo "repair that path as root, then rerun the deployment" >&2
80+
exit 1
81+
fi
82+
6483
# sitemap.xml is runtime-generated but sits outside data.
6584
if [[ -e "$TARGET/sitemap.xml" ]]; then
6685
sudo -n -u "$runtime_user" chmod 0660 "$TARGET/sitemap.xml"

style.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3964,8 +3964,18 @@ body.blackprint-theme .content-pagination .guestbook-page-btn {
39643964
.feed-markdown-editor #bbcode-textbox,
39653965
.feed-markdown-preview { min-height: 240px; max-height: 85dvh; overflow: auto; padding: 12px; box-sizing: border-box; font-size: 14px; line-height: 1.5; box-shadow: none !important; }
39663966
.feed-markdown-preview { border: 1px solid var(--border); }
3967-
.feed-markdown { display: block; max-width: 100%; overflow-wrap: anywhere; }
3967+
.feed-markdown {
3968+
display: block;
3969+
max-width: 100%;
3970+
overflow-wrap: anywhere;
3971+
font-family: "MainRegular", var(--emoji-font), monospace;
3972+
font-size: 14px;
3973+
line-height: 1.4;
3974+
-webkit-text-size-adjust: 100%;
3975+
text-size-adjust: 100%;
3976+
}
39683977
.feed-markdown > :first-child { margin-top: 0; }
3978+
.feed-markdown > :last-child { margin-bottom: 0; }
39693979
.feed-markdown img, .feed-markdown video, .feed-markdown table { max-width: 100%; }
39703980
.feed-markdown table { width: 100%; border-collapse: collapse; }
39713981
.feed-markdown th, .feed-markdown td { padding: 8px; border: 1px solid var(--border); }
@@ -8029,6 +8039,17 @@ body.mobile-template .bbcode-dropdown {
80298039
font-size: 16px !important;
80308040
}
80318041

8042+
/* iOS Safari renders form controls at 16px to avoid focus zoom. Keep the
8043+
highlighted mirror on exactly the same metrics as the real textarea so its
8044+
visible glyphs, selection positions, and caret remain aligned. */
8045+
body.mobile-template .markdown-highlight-layer,
8046+
body.mobile-template .markdown-highlight-input {
8047+
font-size: 16px !important;
8048+
line-height: 1.5 !important;
8049+
-webkit-text-size-adjust: 100%;
8050+
text-size-adjust: 100%;
8051+
}
8052+
80328053
body.blackprint-theme .radio,
80338054
body.blackprint-theme.mobile-template .radio{
80348055
border-radius: 50% !important;

template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
1010
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
1111
<link rel="preload" href="/resources/IosevkaFixedSS03-Regular.woff2" as="font" type="font/woff2" crossorigin>
12-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
12+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1414
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1515
<link rel="icon" type="image/png" href="/resources/favicon-96x96.png" sizes="96x96" />

template_mobile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
1010
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
1111
<link rel="preload" href="/resources/IosevkaFixedSS03-Regular.woff2" as="font" type="font/woff2" crossorigin>
12-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
12+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1414
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1515

themes/lib/aero/aero.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212

themes/lib/ambercrt/ambercrt.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212
<link rel="icon" type="image/png" href="/resources/favicon-96x96.png" sizes="96x96" />

themes/lib/arcade/arcade.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212

themes/lib/bubblegum/bubblegum.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212
<link rel="icon" type="image/png" href="/resources/favicon-96x96.png" sizes="96x96" />

themes/lib/classic/classic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212

themes/lib/cottagecore/cottagecore.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title} | fridge.dev</title>
77
<meta name="description" content="{description}">
88
<link rel="preload" href="/resources/IBM_VGA.woff" as="font" type="font/woff" crossorigin>
9-
<link rel="stylesheet" href="/style.css?v=markdown-editor-highlighting-20260808-1">
9+
<link rel="stylesheet" href="/style.css?v=markdown-post-spacing-20260809-1">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
1111
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
1212

0 commit comments

Comments
 (0)