|
127 | 127 | } |
128 | 128 | } |
129 | 129 |
|
130 | | - .exception-info > .struct, |
131 | | - .exception-info > .title, |
132 | | - .exception-info > .detail { |
| 130 | + .exception-info > .struct { |
133 | 131 | margin: 0; |
134 | 132 | padding: 0; |
135 | 133 | } |
|
146 | 144 | font-weight: 400; |
147 | 145 | } |
148 | 146 |
|
149 | | - .exception-info > .title { |
150 | | - font-size: <%= :math.pow(1.2, 4) %>em; |
151 | | - line-height: 1.4; |
152 | | - font-weight: 300; |
153 | | - color: <%= @style.primary %>; |
154 | | - } |
155 | | - |
156 | | - @media (max-width: 768px) { |
157 | | - .exception-info > .title { |
158 | | - font-size: <%= :math.pow(1.15, 4) %>em; |
159 | | - } |
160 | | - } |
161 | | - |
162 | | - @media (max-width: 480px) { |
163 | | - .exception-info > .title { |
164 | | - font-size: <%= :math.pow(1.1, 4) %>em; |
165 | | - } |
166 | | - } |
167 | | - |
168 | | - .exception-info > .detail { |
169 | | - margin-top: 1.3em; |
170 | | - white-space: pre-wrap; |
| 147 | + .exception-info > code { |
| 148 | + line-height: 1.5; |
171 | 149 | } |
172 | 150 |
|
173 | 151 | /* |
|
707 | 685 | <% end %> |
708 | 686 |
|
709 | 687 | <header class="exception-info"> |
710 | | - <% [headline | details] = String.split(@message, "\n\n") %> |
711 | 688 | <h5 class="struct"> |
712 | 689 | <%= h @title %> |
713 | 690 | <small>at <%= h method(@conn) %></small> |
714 | 691 | <small class="path"><%= h @conn.request_path %></small> |
715 | 692 | </h5> |
716 | | - <h1 class="title"><%= h headline %></h1> |
717 | | - <%= for detail <- details do %> |
718 | | - <p class="detail"><%= h detail %></p> |
719 | | - <% end %> |
| 693 | + <code><pre><%= h @message %></pre></code> |
720 | 694 | </header> |
721 | 695 |
|
722 | 696 | <%= for %{label: label, encoded_handler: encoded_handler} <- @actions do %> |
|
0 commit comments