mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
refactor(css): add styles targeting SVG button/modal icons (#1464)
* refactor(css): add global classes for common icon types * refactor(css): target child SVGs instead of creating new icon classes * fix: fix ButtonWithDropdown style class spacing
This commit is contained in:
@@ -139,8 +139,8 @@ const ServerInstance: React.FC<ServerInstanceProps> = ({
|
||||
onClick={() => onEdit()}
|
||||
className="relative inline-flex items-center justify-center flex-1 w-0 py-4 -mr-px text-sm font-medium leading-5 text-gray-200 transition duration-150 ease-in-out border border-transparent rounded-bl-lg hover:text-white focus:outline-none focus:ring-blue focus:border-gray-500 focus:z-10"
|
||||
>
|
||||
<PencilIcon className="w-5 h-5 mr-2" />
|
||||
{intl.formatMessage(globalMessages.edit)}
|
||||
<PencilIcon />
|
||||
<span>{intl.formatMessage(globalMessages.edit)}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex flex-1 w-0 -ml-px">
|
||||
@@ -148,8 +148,8 @@ const ServerInstance: React.FC<ServerInstanceProps> = ({
|
||||
onClick={() => onDelete()}
|
||||
className="relative inline-flex items-center justify-center flex-1 w-0 py-4 text-sm font-medium leading-5 text-gray-200 transition duration-150 ease-in-out border border-transparent rounded-br-lg hover:text-white focus:outline-none focus:ring-blue focus:border-gray-500 focus:z-10"
|
||||
>
|
||||
<TrashIcon className="w-5 h-5 mr-2" />
|
||||
{intl.formatMessage(globalMessages.delete)}
|
||||
<TrashIcon />
|
||||
<span>{intl.formatMessage(globalMessages.delete)}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -265,7 +265,7 @@ const SettingsServices: React.FC = () => {
|
||||
})
|
||||
}
|
||||
title="Delete Server"
|
||||
iconSvg={<TrashIcon className="w-6 h-6" />}
|
||||
iconSvg={<TrashIcon />}
|
||||
>
|
||||
{intl.formatMessage(messages.deleteserverconfirm)}
|
||||
</Modal>
|
||||
@@ -341,8 +341,8 @@ const SettingsServices: React.FC = () => {
|
||||
setEditRadarrModal({ open: true, radarr: null })
|
||||
}
|
||||
>
|
||||
<PlusIcon className="w-5 h-5 mr-1" />
|
||||
{intl.formatMessage(messages.addradarr)}
|
||||
<PlusIcon />
|
||||
<span>{intl.formatMessage(messages.addradarr)}</span>
|
||||
</Button>
|
||||
</div>
|
||||
</li>
|
||||
@@ -431,8 +431,8 @@ const SettingsServices: React.FC = () => {
|
||||
setEditSonarrModal({ open: true, sonarr: null })
|
||||
}
|
||||
>
|
||||
<PlusIcon className="w-5 h-5 mr-1" />
|
||||
{intl.formatMessage(messages.addsonarr)}
|
||||
<PlusIcon />
|
||||
<span>{intl.formatMessage(messages.addsonarr)}</span>
|
||||
</Button>
|
||||
</div>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user