From c585730c7cd0704ad879b5f7a478c963a880bd0c Mon Sep 17 00:00:00 2001 From: ManUtopiK <emmanuel.salomon@gmail.com> Date: Fri, 17 Sep 2021 15:14:38 +0200 Subject: [PATCH] Fix waves in error page --- layouts/error.vue | 2 +- plugins/directives.client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/error.vue b/layouts/error.vue index c7cdac1b..2effdbb7 100644 --- a/layouts/error.vue +++ b/layouts/error.vue @@ -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"> diff --git a/plugins/directives.client.js b/plugins/directives.client.js index dfee340f..3dfc7540 100644 --- a/plugins/directives.client.js +++ b/plugins/directives.client.js @@ -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) + ' ' + txt.substr(-1) }, }) -- GitLab