Skip to content
Snippets Groups Projects
Commit c585730c authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

Fix waves in error page

parent b69ea5f9
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@
preserveAspectRatio="none"
viewBox="0 0 3000 700"
class="bottom-0 absolute"
style="margin-bottom: -24%"
style="margin-bottom: -500px"
>
<g transform="translate(1500,350) scale(1,1) translate(-1500,-350)">
<linearGradient id="wave-color" x1="0" x2="1" y1="0" y2="0">
......
......@@ -12,7 +12,7 @@ Vue.directive('focus', {
Vue.directive('prevent-last-char-break', {
inserted(el, binding) {
const txt = el.innerHTML.trim()
if (/.*\W[?!:;]$/.test(txt))
if (/.*\s[?!:;]$/.test(txt))
el.innerHTML = txt.substr(0, txt.length - 2) + '&nbsp;' + txt.substr(-1)
},
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment