Fossil SCM

In the new forum reply header, reduce size from H1 to H2 and italicize the thread title.

stephan 2022-11-24 15:21 trunk
Commit 7b92fc614dc461230145c56c6db46fed8058eccd2f145fdf24999340a9eb57bc
2 files changed +4 +4 -3
--- src/default.css
+++ src/default.css
@@ -988,10 +988,14 @@
988988
}
989989
div.forumPostBody.shrunken {
990990
/* When an expandable post is un-expanded, it is shrunkend down
991991
to this size instead of its original size. */
992992
max-height: 8em;
993
+}
994
+span.forumPostReplyTitle {
995
+ /* thread title part of the page header when replying to a post */
996
+ font-style: italic;
993997
}
994998
995999
div.forumSel {
9961000
background-color: #cef;
9971001
}
9981002
--- src/default.css
+++ src/default.css
@@ -988,10 +988,14 @@
988 }
989 div.forumPostBody.shrunken {
990 /* When an expandable post is un-expanded, it is shrunkend down
991 to this size instead of its original size. */
992 max-height: 8em;
 
 
 
 
993 }
994
995 div.forumSel {
996 background-color: #cef;
997 }
998
--- src/default.css
+++ src/default.css
@@ -988,10 +988,14 @@
988 }
989 div.forumPostBody.shrunken {
990 /* When an expandable post is un-expanded, it is shrunkend down
991 to this size instead of its original size. */
992 max-height: 8em;
993 }
994 span.forumPostReplyTitle {
995 /* thread title part of the page header when replying to a post */
996 font-style: italic;
997 }
998
999 div.forumSel {
1000 background-color: #cef;
1001 }
1002
+4 -3
--- src/forum.c
+++ src/forum.c
@@ -1324,16 +1324,17 @@
13241324
/* Reply */
13251325
char *zDisplayName;
13261326
zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
13271327
zContent = PDT("content","");
13281328
style_header("Reply");
1329
- @ <h1>Replying to
1329
+ @ <h2>Replying to
13301330
@ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
13311331
if( pRootPost->zThreadTitle ){
1332
- @ in thread %h(pRootPost->zThreadTitle)
1332
+ @ in thread
1333
+ @ <span class="forumPostReplyTitle">%h(pRootPost->zThreadTitle)</span>
13331334
}
1334
- @ </h1>
1335
+ @ </h2>
13351336
zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
13361337
zDisplayName = display_name_from_login(pPost->zUser);
13371338
@ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
13381339
fossil_free(zDisplayName);
13391340
fossil_free(zDate);
13401341
--- src/forum.c
+++ src/forum.c
@@ -1324,16 +1324,17 @@
1324 /* Reply */
1325 char *zDisplayName;
1326 zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
1327 zContent = PDT("content","");
1328 style_header("Reply");
1329 @ <h1>Replying to
1330 @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
1331 if( pRootPost->zThreadTitle ){
1332 @ in thread %h(pRootPost->zThreadTitle)
 
1333 }
1334 @ </h1>
1335 zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
1336 zDisplayName = display_name_from_login(pPost->zUser);
1337 @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
1338 fossil_free(zDisplayName);
1339 fossil_free(zDate);
1340
--- src/forum.c
+++ src/forum.c
@@ -1324,16 +1324,17 @@
1324 /* Reply */
1325 char *zDisplayName;
1326 zMimetype = PD("mimetype",DEFAULT_FORUM_MIMETYPE);
1327 zContent = PDT("content","");
1328 style_header("Reply");
1329 @ <h2>Replying to
1330 @ <a href="%R/forumpost/%!S(zFpid)" target="_blank">%S(zFpid)</a>
1331 if( pRootPost->zThreadTitle ){
1332 @ in thread
1333 @ <span class="forumPostReplyTitle">%h(pRootPost->zThreadTitle)</span>
1334 }
1335 @ </h2>
1336 zDate = db_text(0, "SELECT datetime(%.17g,toLocal())", pPost->rDate);
1337 zDisplayName = display_name_from_login(pPost->zUser);
1338 @ <h3 class='forumPostHdr'>By %s(zDisplayName) on %h(zDate)</h3>
1339 fossil_free(zDisplayName);
1340 fossil_free(zDate);
1341

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button