mirror of
https://github.com/Readarr/Readarr
synced 2026-01-13 02:53:19 +01:00
New: Make Release Group Outline Not Show as Required
(cherry picked from commit 89e363fd145ae6c531e6b3fa4fde258af05afca0) Closes #2277
This commit is contained in:
parent
924f739d1f
commit
7beee07a2c
5 changed files with 30 additions and 11 deletions
|
|
@ -258,7 +258,9 @@ class InteractiveImportRow extends Component {
|
|||
>
|
||||
{
|
||||
showReleaseGroupPlaceholder ?
|
||||
<InteractiveImportRowCellPlaceholder /> :
|
||||
<InteractiveImportRowCellPlaceholder
|
||||
isOptional={true}
|
||||
/> :
|
||||
releaseGroup
|
||||
}
|
||||
</TableRowCellButton>
|
||||
|
|
|
|||
|
|
@ -5,3 +5,7 @@
|
|||
height: 25px;
|
||||
border: 2px dashed var(--dangerColor);
|
||||
}
|
||||
|
||||
.optional {
|
||||
border: 2px dashed var(--gray);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// This file is automatically generated.
|
||||
// Please do not change this file!
|
||||
interface CssExports {
|
||||
'optional': string;
|
||||
'placeholder': string;
|
||||
}
|
||||
export const cssExports: CssExports;
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
import React from 'react';
|
||||
import styles from './InteractiveImportRowCellPlaceholder.css';
|
||||
|
||||
function InteractiveImportRowCellPlaceholder() {
|
||||
return (
|
||||
<span className={styles.placeholder} />
|
||||
);
|
||||
}
|
||||
|
||||
export default InteractiveImportRowCellPlaceholder;
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
import styles from './InteractiveImportRowCellPlaceholder.css';
|
||||
|
||||
interface InteractiveImportRowCellPlaceholderProps {
|
||||
isOptional?: boolean;
|
||||
}
|
||||
|
||||
function InteractiveImportRowCellPlaceholder(
|
||||
props: InteractiveImportRowCellPlaceholderProps
|
||||
) {
|
||||
return (
|
||||
<span
|
||||
className={classNames(
|
||||
styles.placeholder,
|
||||
props.isOptional && styles.optional
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default InteractiveImportRowCellPlaceholder;
|
||||
Loading…
Reference in a new issue