From 3fb152ac7c8ff03c27c8c0ffb0f3d1c73899a060 Mon Sep 17 00:00:00 2001 From: Nick Colley <2445413+NickColley@users.noreply.github.com> Date: Sat, 10 Dec 2022 23:30:43 +0000 Subject: [PATCH] fix: back button icon rendering inconsistently (#2306) Depending on the operating system and therefore the system font the back icon being a unicode arrow means it'll render inconsistently, sometimes I've seen it looking really odd. Instead make use of the font awesome arrow so that'll it render consistently no matter ths system font. --- bin/svgs.js | 1 + src/routes/_components/DynamicPageBanner.html | 21 +++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bin/svgs.js b/bin/svgs.js index 16d90adc..3d828bba 100644 --- a/bin/svgs.js +++ b/bin/svgs.js @@ -1,5 +1,6 @@ export default [ { id: 'pinafore-logo', src: 'src/static/sailboat.svg', inline: true }, + { id: 'fa-arrow-left', src: 'src/thirdparty/font-awesome-svg-png/white/svg/arrow-left.svg' }, { id: 'fa-bell', src: 'src/thirdparty/font-awesome-svg-png/white/svg/bell.svg', inline: true }, { id: 'fa-bell-o', src: 'src/thirdparty/font-awesome-svg-png/white/svg/bell-o.svg' }, { id: 'fa-users', src: 'src/thirdparty/font-awesome-svg-png/white/svg/users.svg', inline: true }, diff --git a/src/routes/_components/DynamicPageBanner.html b/src/routes/_components/DynamicPageBanner.html index 8c768678..96f8a20f 100644 --- a/src/routes/_components/DynamicPageBanner.html +++ b/src/routes/_components/DynamicPageBanner.html @@ -8,7 +8,10 @@ + on:click|preventDefault="onGoBack()"> + + {intl.back} +