Fossil SCM
Limit the displayed length of a forum-post to 50em using CSS. Longer posts scroll.
Commit
421955cdf720c093e9744427f7264fdc17d6f062a9f7ed96f1d8f9895cf2c678
Parent
5e28febf2bc03d2…
2 files changed
+4
+2
+4
| --- src/default_css.txt | ||
| +++ src/default_css.txt | ||
| @@ -757,10 +757,14 @@ | ||
| 757 | 757 | div.forumHier, div.forumTime { |
| 758 | 758 | border: 1px solid black; |
| 759 | 759 | padding-left: 1ex; |
| 760 | 760 | padding-right: 1ex; |
| 761 | 761 | margin-top: 1ex; |
| 762 | +} | |
| 763 | +div.forumPostBody { | |
| 764 | + max-height: 50em; | |
| 765 | + overflow: auto; | |
| 762 | 766 | } |
| 763 | 767 | div.forumSel { |
| 764 | 768 | background-color: #cef; |
| 765 | 769 | } |
| 766 | 770 | div.forumObs { |
| 767 | 771 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -757,10 +757,14 @@ | |
| 757 | div.forumHier, div.forumTime { |
| 758 | border: 1px solid black; |
| 759 | padding-left: 1ex; |
| 760 | padding-right: 1ex; |
| 761 | margin-top: 1ex; |
| 762 | } |
| 763 | div.forumSel { |
| 764 | background-color: #cef; |
| 765 | } |
| 766 | div.forumObs { |
| 767 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -757,10 +757,14 @@ | |
| 757 | div.forumHier, div.forumTime { |
| 758 | border: 1px solid black; |
| 759 | padding-left: 1ex; |
| 760 | padding-right: 1ex; |
| 761 | margin-top: 1ex; |
| 762 | } |
| 763 | div.forumPostBody { |
| 764 | max-height: 50em; |
| 765 | overflow: auto; |
| 766 | } |
| 767 | div.forumSel { |
| 768 | background-color: #cef; |
| 769 | } |
| 770 | div.forumObs { |
| 771 |
+2
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -323,14 +323,16 @@ | ||
| 323 | 323 | @ <h1><i>Deleted</i></h1> |
| 324 | 324 | } |
| 325 | 325 | } |
| 326 | 326 | if( zContent && zContent[0] ){ |
| 327 | 327 | Blob x; |
| 328 | + @ <div class='forumPostBody'> | |
| 328 | 329 | blob_init(&x, 0, 0); |
| 329 | 330 | blob_append(&x, zContent, -1); |
| 330 | 331 | wiki_render_by_mimetype(&x, zMimetype); |
| 331 | 332 | blob_reset(&x); |
| 333 | + @ </div> | |
| 332 | 334 | }else{ |
| 333 | 335 | @ <i>Deleted</i> |
| 334 | 336 | } |
| 335 | 337 | if( zClass ){ |
| 336 | 338 | @ </div> |
| 337 | 339 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -323,14 +323,16 @@ | |
| 323 | @ <h1><i>Deleted</i></h1> |
| 324 | } |
| 325 | } |
| 326 | if( zContent && zContent[0] ){ |
| 327 | Blob x; |
| 328 | blob_init(&x, 0, 0); |
| 329 | blob_append(&x, zContent, -1); |
| 330 | wiki_render_by_mimetype(&x, zMimetype); |
| 331 | blob_reset(&x); |
| 332 | }else{ |
| 333 | @ <i>Deleted</i> |
| 334 | } |
| 335 | if( zClass ){ |
| 336 | @ </div> |
| 337 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -323,14 +323,16 @@ | |
| 323 | @ <h1><i>Deleted</i></h1> |
| 324 | } |
| 325 | } |
| 326 | if( zContent && zContent[0] ){ |
| 327 | Blob x; |
| 328 | @ <div class='forumPostBody'> |
| 329 | blob_init(&x, 0, 0); |
| 330 | blob_append(&x, zContent, -1); |
| 331 | wiki_render_by_mimetype(&x, zMimetype); |
| 332 | blob_reset(&x); |
| 333 | @ </div> |
| 334 | }else{ |
| 335 | @ <i>Deleted</i> |
| 336 | } |
| 337 | if( zClass ){ |
| 338 | @ </div> |
| 339 |