Fossil SCM

Start replacing accordion widgets with details tags. Currently only /vinfo's top-most according is affected but it looks quite nice, doesn't need JS, and lets us pick and choose which accordions should start opened or closed.

stephan 2026-11-13 11:48 UTC ci-wiki
Commit eaf8ba3c80a7b77b99c19cc138786da2b900de50a1df6375b9aba6c1b0b0a09c
1 file changed +3 -2
+3 -2
--- src/info.c
+++ src/info.c
@@ -1080,11 +1080,12 @@
10801080
zComment = db_column_text(&q1, 3);
10811081
zDate = db_column_text(&q1,1);
10821082
zOrigDate = db_column_text(&q1, 4);
10831083
if( zOrigDate==0 ) zOrigDate = zDate;
10841084
zZulu = db_column_text(&q1, 6);
1085
- @ <div class="section accordion">Overview</div>
1085
+ @ <details open>
1086
+ @ <summary class="section">Overview</summary>
10861087
@ <div class="accordion_panel">
10871088
@ <table class="label-value">
10881089
@ <tr><th>Comment:</th><td class="infoComment">\
10891090
@ %!W(zEComment?zEComment:zComment)</td></tr>
10901091
@@ -1269,11 +1270,11 @@
12691270
}else{
12701271
style_header("Check-in Information");
12711272
login_anonymous_available();
12721273
}
12731274
db_finalize(&q1);
1274
- @ </div>
1275
+ @ </details>
12751276
builtin_request_js("accordion.js");
12761277
if( !PB("nowiki") ){
12771278
wiki_render_associated("checkin", zUuid, 0);
12781279
}
12791280
render_backlink_graph(zUuid,
12801281
--- src/info.c
+++ src/info.c
@@ -1080,11 +1080,12 @@
1080 zComment = db_column_text(&q1, 3);
1081 zDate = db_column_text(&q1,1);
1082 zOrigDate = db_column_text(&q1, 4);
1083 if( zOrigDate==0 ) zOrigDate = zDate;
1084 zZulu = db_column_text(&q1, 6);
1085 @ <div class="section accordion">Overview</div>
 
1086 @ <div class="accordion_panel">
1087 @ <table class="label-value">
1088 @ <tr><th>Comment:</th><td class="infoComment">\
1089 @ %!W(zEComment?zEComment:zComment)</td></tr>
1090
@@ -1269,11 +1270,11 @@
1269 }else{
1270 style_header("Check-in Information");
1271 login_anonymous_available();
1272 }
1273 db_finalize(&q1);
1274 @ </div>
1275 builtin_request_js("accordion.js");
1276 if( !PB("nowiki") ){
1277 wiki_render_associated("checkin", zUuid, 0);
1278 }
1279 render_backlink_graph(zUuid,
1280
--- src/info.c
+++ src/info.c
@@ -1080,11 +1080,12 @@
1080 zComment = db_column_text(&q1, 3);
1081 zDate = db_column_text(&q1,1);
1082 zOrigDate = db_column_text(&q1, 4);
1083 if( zOrigDate==0 ) zOrigDate = zDate;
1084 zZulu = db_column_text(&q1, 6);
1085 @ <details open>
1086 @ <summary class="section">Overview</summary>
1087 @ <div class="accordion_panel">
1088 @ <table class="label-value">
1089 @ <tr><th>Comment:</th><td class="infoComment">\
1090 @ %!W(zEComment?zEComment:zComment)</td></tr>
1091
@@ -1269,11 +1270,11 @@
1270 }else{
1271 style_header("Check-in Information");
1272 login_anonymous_available();
1273 }
1274 db_finalize(&q1);
1275 @ </details>
1276 builtin_request_js("accordion.js");
1277 if( !PB("nowiki") ){
1278 wiki_render_associated("checkin", zUuid, 0);
1279 }
1280 render_backlink_graph(zUuid,
1281

Keyboard Shortcuts

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