fix(ui): add missing margins on button SVGs on Plex Settings page (#1546)

pull/1502/head
TheCatLady 4 years ago committed by GitHub
parent 1a6d4bddc0
commit 5e588be812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -530,9 +530,11 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
className={isSyncing ? 'animate-spin' : ''} className={isSyncing ? 'animate-spin' : ''}
style={{ animationDirection: 'reverse' }} style={{ animationDirection: 'reverse' }}
/> />
{isSyncing <span>
? intl.formatMessage(messages.scanning) {isSyncing
: intl.formatMessage(messages.scan)} ? intl.formatMessage(messages.scanning)
: intl.formatMessage(messages.scan)}
</span>
</Button> </Button>
<ul className="grid grid-cols-1 gap-5 mt-6 sm:gap-6 sm:grid-cols-2 lg:grid-cols-4"> <ul className="grid grid-cols-1 gap-5 mt-6 sm:gap-6 sm:grid-cols-2 lg:grid-cols-4">
{data?.libraries.map((library) => ( {data?.libraries.map((library) => (
@ -601,17 +603,15 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
</> </>
)} )}
<div className="flex-1 text-right"> <div className="flex-1 text-right">
{!dataSync?.running && ( {!dataSync?.running ? (
<Button buttonType="warning" onClick={() => startScan()}> <Button buttonType="warning" onClick={() => startScan()}>
<SearchIcon /> <SearchIcon />
{intl.formatMessage(messages.startscan)} <span>{intl.formatMessage(messages.startscan)}</span>
</Button> </Button>
)} ) : (
{dataSync?.running && (
<Button buttonType="danger" onClick={() => cancelScan()}> <Button buttonType="danger" onClick={() => cancelScan()}>
<XIcon /> <XIcon />
{intl.formatMessage(messages.cancelscan)} <span>{intl.formatMessage(messages.cancelscan)}</span>
</Button> </Button>
)} )}
</div> </div>

Loading…
Cancel
Save