aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-11 10:55:02 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-11 10:55:02 +0800
commitb29ce1683cbeae50795581dc834b72381a49d310 (patch)
treeed1e24b7b40cd2e0985c3b495b1964052b204e2d
parentCSS: Smaller tab buttons (diff)
downloadforge-b29ce1683cbeae50795581dc834b72381a49d310.tar.gz
forge-b29ce1683cbeae50795581dc834b72381a49d310.tar.zst
forge-b29ce1683cbeae50795581dc834b72381a49d310.zip
Breakable SSH keysv0.1.41
-rw-r--r--forged/static/style.css7
-rw-r--r--forged/templates/index.tmpl4
2 files changed, 9 insertions, 2 deletions
diff --git a/forged/static/style.css b/forged/static/style.css
index b677551..50f1c37 100644
--- a/forged/static/style.css
+++ b/forged/static/style.css
@@ -614,3 +614,10 @@ td > ul {
font-weight: bold;
margin-top: 1rem;
}
+
+
+.breakable {
+ word-break: break-word;
+ /* overflow-wrap: break-word;
+ overflow: hidden; */
+}
diff --git a/forged/templates/index.tmpl b/forged/templates/index.tmpl
index ff7c127..bd81f04 100644
--- a/forged/templates/index.tmpl
+++ b/forged/templates/index.tmpl
@@ -46,11 +46,11 @@
<tbody>
<tr>
<th scope="row">SSH public key</th>
- <td><code>{{- .global.server_public_key_string -}}</code></td>
+ <td><code class="breakable">{{- .global.server_public_key_string -}}</code></td>
</tr>
<tr>
<th scope="row">SSH fingerprint</th>
- <td><code>{{- .global.server_public_key_fingerprint -}}</code></td>
+ <td><code class="breakable">{{- .global.server_public_key_fingerprint -}}</code></td>
</tr>
</tbody>
</table>