diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 04:15:32 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 04:15:32 +0200 |
| commit | 38920de3910705dac42af2370da7b3ba504577a9 (patch) | |
| tree | 106afdc3d7021fffbee36a526caf942f0f5725c5 | |
| parent | d171b7d9673bce6abf537d6dc6db3ac7a9062754 (diff) | |
Prevent the more … link from line breaking
| -rw-r--r-- | app/views/custom/partials/_article.html.erb | 2 | ||||
| -rw-r--r-- | public/stylesheets/ccc.css | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/custom/partials/_article.html.erb b/app/views/custom/partials/_article.html.erb index 2a76bdcc..20688f40 100644 --- a/app/views/custom/partials/_article.html.erb +++ b/app/views/custom/partials/_article.html.erb | |||
| @@ -9,6 +9,6 @@ | |||
| 9 | <%= link_to_path image_tag(headline.upload.url(:medium), :alt => ""), page.node.unique_name %> | 9 | <%= link_to_path image_tag(headline.upload.url(:medium), :alt => ""), page.node.unique_name %> |
| 10 | </div> | 10 | </div> |
| 11 | <% end %> | 11 | <% end %> |
| 12 | <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p> | 12 | <p class="excerpt"><%= page.abstract %> <span class="no_break"><%= link_to_path t(:more), page.node.unique_name %></span></p> |
| 13 | </div> | 13 | </div> |
| 14 | </div> | 14 | </div> |
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index 79f2ea2f..faa9c18d 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -112,6 +112,10 @@ dd { | |||
| 112 | display: none; | 112 | display: none; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | .no_break { | ||
| 116 | white-space: nowrap | ||
| 117 | } | ||
| 118 | |||
| 115 | /* ========================================================================== | 119 | /* ========================================================================== |
| 116 | 3. COLOR SCHEME & LIGHT/DARK TOGGLE | 120 | 3. COLOR SCHEME & LIGHT/DARK TOGGLE |
| 117 | ========================================================================== | 121 | ========================================================================== |
