Commit 4a479f3f78d8dd6abe0e5ee656ad11a0ed7e2f06

Thomas de Grivel 2022-08-11T19:55:22

wrap pre

diff --git a/lib/kmxgit_web/templates/page/index.html.heex b/lib/kmxgit_web/templates/page/index.html.heex
index cb825b0..0ef0b9d 100644
--- a/lib/kmxgit_web/templates/page/index.html.heex
+++ b/lib/kmxgit_web/templates/page/index.html.heex
@@ -30,7 +30,7 @@
         <%= link gettext("Install git"), to: Routes.page_path(@conn, :doc_git_install) %>
       </p>
       <div class="highlight">
-        <pre><code><span class="c1"># <%= gettext "Clone repository user/path/to/repo if repo does not exist" %> :</span>
+        <pre class="wrap"><code><span class="c1"># <%= gettext "Clone repository user/path/to/repo if repo does not exist" %> :</span>
 git clone <b><%= @git_ssh_url %>:user/path/to/repo.git</b>
 cd <b>repo</b>
 
diff --git a/lib/kmxgit_web/templates/user/show.html.heex b/lib/kmxgit_web/templates/user/show.html.heex
index b0b86d6..2d4d8c9 100644
--- a/lib/kmxgit_web/templates/user/show.html.heex
+++ b/lib/kmxgit_web/templates/user/show.html.heex
@@ -66,7 +66,7 @@
         <tr>
           <th><%= gettext "SSH keys" %></th>
           <td class="scroll-x">
-            <pre class="ssh_keys">
+            <pre class="ssh_keys wrap">
               <%= @user.ssh_keys %>
             </pre>
           </td>