From d77cde50427edb8e1bcfba71dcd2ab5208de098f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 11 Jul 2022 07:33:52 +0000 Subject: [PATCH] Make class invite button text shorter This fixes horizontal scrolling on mobile --- webclient/src/Classes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js index d3f30a3..655ffa5 100644 --- a/webclient/src/Classes.js +++ b/webclient/src/Classes.js @@ -464,9 +464,9 @@ export function ICalButtons(props) { }; const options = [ - { key: 'email', icon: 'mail outline', text: 'Email ICS Event', value: 'email', action: handleEmail }, - { key: 'download', icon: 'download', text: 'Download ICS Event', value: 'download', action: handleDownload }, - { key: 'google', icon: 'google', text: 'Add to Google Calendar', value: 'google', action: addToGoogleCalendar }, + { key: 'email', icon: 'mail outline', text: 'Email ICS Event', value: 'Email', action: handleEmail }, + { key: 'download', icon: 'download', text: 'Download ICS Event', value: 'Download', action: handleDownload }, + { key: 'google', icon: 'google', text: 'Add to Google Calendar', value: 'Google', action: addToGoogleCalendar }, ]; // get default option from local storage or default to first item in options list @@ -497,7 +497,7 @@ export function ICalButtons(props) { loading={loading} onClick={selectedOption.action} > - {selectedOption.text} + {selectedOption.value}