From 93bd6b6ed511324f4b05183f71213ad58b891b85 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 2 May 2022 12:19:33 -0700 Subject: [PATCH] Use SVG images of grouped font stepper controls Aligning the components in CSS didn't work very well, so this uses exported versions of the design with the `A` icon and `+/-` symbol in a single image. --- .../templates/article/ReaderSettingsControl.tsx | 14 +++++++------- .../web/public/static/icons/font-stepper-down.svg | 5 +++++ .../web/public/static/icons/font-stepper-up.svg | 5 +++++ 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 packages/web/public/static/icons/font-stepper-down.svg create mode 100644 packages/web/public/static/icons/font-stepper-up.svg diff --git a/packages/web/components/templates/article/ReaderSettingsControl.tsx b/packages/web/components/templates/article/ReaderSettingsControl.tsx index 4e5f731aa..cde4bb9f4 100644 --- a/packages/web/components/templates/article/ReaderSettingsControl.tsx +++ b/packages/web/components/templates/article/ReaderSettingsControl.tsx @@ -7,7 +7,7 @@ import { AlignCenterHorizontalSimple, ArrowsInLineHorizontal, ArrowsOutLineHoriz import { AIcon } from '../../elements/images/AIcon' import { TickedRangeSlider } from '../../elements/TickedRangeSlider' import { showSuccessToast } from '../../../lib/toastHelpers' - +import Image from 'next/image' type ReaderSettingsProps = { marginWidth: number @@ -34,20 +34,20 @@ export function ReaderSettingsControl(props: ReaderSettingsProps): JSX.Element { - - + + + + diff --git a/packages/web/public/static/icons/font-stepper-up.svg b/packages/web/public/static/icons/font-stepper-up.svg new file mode 100644 index 000000000..20edd0870 --- /dev/null +++ b/packages/web/public/static/icons/font-stepper-up.svg @@ -0,0 +1,5 @@ + + + + +