mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(css): don't target button globally (#1510)
* fix(css): don't target button globally * fix(css): revert toast change
This commit is contained in:
@@ -41,7 +41,7 @@ const SearchInput: React.FC = () => {
|
|||||||
className="absolute inset-y-0 p-1 m-auto text-gray-400 transition border-none outline-none right-2 h-7 w-7 focus:outline-none focus:border-none hover:text-white"
|
className="absolute inset-y-0 p-1 m-auto text-gray-400 transition border-none outline-none right-2 h-7 w-7 focus:outline-none focus:border-none hover:text-white"
|
||||||
onClick={() => clear()}
|
onClick={() => clear()}
|
||||||
>
|
>
|
||||||
<XCircleIcon />
|
<XCircleIcon className="w-5 h-5" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -97,7 +97,6 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
buttonType="success"
|
buttonType="success"
|
||||||
buttonSize="sm"
|
|
||||||
className="mr-1"
|
className="mr-1"
|
||||||
onClick={() => updateRequest('approve')}
|
onClick={() => updateRequest('approve')}
|
||||||
disabled={isUpdating}
|
disabled={isUpdating}
|
||||||
@@ -106,7 +105,6 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
buttonType="danger"
|
buttonType="danger"
|
||||||
buttonSize="sm"
|
|
||||||
className="mr-1"
|
className="mr-1"
|
||||||
onClick={() => updateRequest('decline')}
|
onClick={() => updateRequest('decline')}
|
||||||
disabled={isUpdating}
|
disabled={isUpdating}
|
||||||
@@ -115,7 +113,6 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
buttonSize="sm"
|
|
||||||
onClick={() => setShowEditModal(true)}
|
onClick={() => setShowEditModal(true)}
|
||||||
disabled={isUpdating}
|
disabled={isUpdating}
|
||||||
>
|
>
|
||||||
@@ -126,7 +123,6 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|||||||
{request.status !== MediaRequestStatus.PENDING && (
|
{request.status !== MediaRequestStatus.PENDING && (
|
||||||
<Button
|
<Button
|
||||||
buttonType="danger"
|
buttonType="danger"
|
||||||
buttonSize="sm"
|
|
||||||
onClick={() => deleteRequest()}
|
onClick={() => deleteRequest()}
|
||||||
disabled={isUpdating}
|
disabled={isUpdating}
|
||||||
>
|
>
|
||||||
|
@@ -30,7 +30,7 @@ const CopyButton: React.FC<{ textToCopy: string }> = ({ textToCopy }) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setCopied();
|
setCopied();
|
||||||
}}
|
}}
|
||||||
className="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 hover:bg-indigo-500 focus:outline-none focus:ring-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700"
|
className="input-action"
|
||||||
>
|
>
|
||||||
<ClipboardCopyIcon />
|
<ClipboardCopyIcon />
|
||||||
</button>
|
</button>
|
||||||
|
@@ -203,7 +203,7 @@ const SettingsMain: React.FC = () => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
regenerate();
|
regenerate();
|
||||||
}}
|
}}
|
||||||
className="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 rounded-r-md hover:bg-indigo-500 focus:outline-none focus:ring-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700"
|
className="input-action"
|
||||||
>
|
>
|
||||||
<RefreshIcon />
|
<RefreshIcon />
|
||||||
</button>
|
</button>
|
||||||
|
@@ -431,7 +431,7 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
refreshPresetServers();
|
refreshPresetServers();
|
||||||
}}
|
}}
|
||||||
className="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 rounded-r-md hover:bg-indigo-500 focus:outline-none focus:ring-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700"
|
className="input-action"
|
||||||
>
|
>
|
||||||
<RefreshIcon
|
<RefreshIcon
|
||||||
className={isRefreshingPresets ? 'animate-spin' : ''}
|
className={isRefreshingPresets ? 'animate-spin' : ''}
|
||||||
|
@@ -139,7 +139,7 @@ const ServerInstance: React.FC<ServerInstanceProps> = ({
|
|||||||
onClick={() => onEdit()}
|
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"
|
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 />
|
<PencilIcon className="w-5 h-5 mr-2" />
|
||||||
<span>{intl.formatMessage(globalMessages.edit)}</span>
|
<span>{intl.formatMessage(globalMessages.edit)}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -148,7 +148,7 @@ const ServerInstance: React.FC<ServerInstanceProps> = ({
|
|||||||
onClick={() => onDelete()}
|
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"
|
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 />
|
<TrashIcon className="w-5 h-5 mr-2" />
|
||||||
<span>{intl.formatMessage(globalMessages.delete)}</span>
|
<span>{intl.formatMessage(globalMessages.delete)}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -50,7 +50,7 @@ const Toast: React.FC<ToastProps> = ({
|
|||||||
onClick={() => onDismiss()}
|
onClick={() => onDismiss()}
|
||||||
className="inline-flex text-gray-400 transition duration-150 ease-in-out focus:outline-none focus:text-gray-500"
|
className="inline-flex text-gray-400 transition duration-150 ease-in-out focus:outline-none focus:text-gray-500"
|
||||||
>
|
>
|
||||||
<XIcon />
|
<XIcon className="w-5 h-5" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -278,18 +278,27 @@ select.rounded-r-only {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input.short {
|
input.short {
|
||||||
width: 4.875rem;
|
@apply w-20;
|
||||||
}
|
}
|
||||||
|
|
||||||
select.short {
|
select.short {
|
||||||
@apply w-min;
|
@apply w-min;
|
||||||
}
|
}
|
||||||
|
|
||||||
button svg,
|
button.input-action {
|
||||||
.button-md svg {
|
@apply relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 hover:bg-indigo-500 active:bg-gray-100 active:text-gray-700 last:rounded-r-md;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-md svg,
|
||||||
|
button.input-action svg,
|
||||||
|
.plex-button svg {
|
||||||
@apply w-5 h-5 mr-2 last:mr-0;
|
@apply w-5 h-5 mr-2 last:mr-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-md svg {
|
||||||
|
@apply last:w-4 last:h-4;
|
||||||
|
}
|
||||||
|
|
||||||
.button-sm svg {
|
.button-sm svg {
|
||||||
@apply w-4 h-4 mr-1.5 last:w-5 last:h-5 last:mr-0;
|
@apply w-4 h-4 mr-1.5 last:w-5 last:h-5 last:mr-0;
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-disable */
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const defaultTheme = require('tailwindcss/defaultTheme');
|
const defaultTheme = require('tailwindcss/defaultTheme');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -59,19 +59,6 @@ module.exports = {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
variants: {
|
|
||||||
cursor: ['disabled'],
|
|
||||||
width: ['first', 'last', 'responsive'],
|
|
||||||
height: ['first', 'last', 'responsive'],
|
|
||||||
padding: ['first', 'last', 'responsive'],
|
|
||||||
borderWidth: ['first', 'last'],
|
|
||||||
margin: ['first', 'last', 'responsive'],
|
|
||||||
boxShadow: ['group-focus', 'responsive'],
|
|
||||||
opacity: ['disabled', 'hover', 'group-hover'],
|
|
||||||
ringColor: ['focus', 'focus-within', 'hover', 'active'],
|
|
||||||
scale: ['hover', 'focus', 'group-hover'],
|
|
||||||
zIndex: ['hover', 'responsive'],
|
|
||||||
},
|
|
||||||
plugins: [
|
plugins: [
|
||||||
require('@tailwindcss/forms'),
|
require('@tailwindcss/forms'),
|
||||||
require('@tailwindcss/typography'),
|
require('@tailwindcss/typography'),
|
||||||
|
Reference in New Issue
Block a user