mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Minor UI fixes (#4509)
* Fix a zero value disabling the SettingModal * Fix performer disambiguation styling * Fix performer tagger error message
This commit is contained in:
@@ -233,6 +233,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.performer-select {
|
.performer-select {
|
||||||
|
.performer-disambiguation {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
||||||
.alias {
|
.alias {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
|
|||||||
@@ -322,7 +322,10 @@ export const SettingModal = <T extends {}>(props: ISettingModal<T>) => {
|
|||||||
type="submit"
|
type="submit"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
onClick={() => close(currentValue)}
|
onClick={() => close(currentValue)}
|
||||||
disabled={!currentValue || (validate && !validate(currentValue))}
|
disabled={
|
||||||
|
currentValue === undefined ||
|
||||||
|
(validate && !validate(currentValue))
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<FormattedMessage id="actions.confirm" />
|
<FormattedMessage id="actions.confirm" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -518,6 +518,6 @@ div.react-datepicker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.react-select-image-option {
|
.react-select-image-option {
|
||||||
align-items: center;
|
align-items: baseline;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ const PerformerTaggerList: React.FC<IPerformerTaggerListProps> = ({
|
|||||||
[performerID]: {
|
[performerID]: {
|
||||||
message: intl.formatMessage(
|
message: intl.formatMessage(
|
||||||
{ id: "performer_tagger.failed_to_save_performer" },
|
{ id: "performer_tagger.failed_to_save_performer" },
|
||||||
{ studio: modalPerformer?.name }
|
{ performer: modalPerformer?.name }
|
||||||
),
|
),
|
||||||
details:
|
details:
|
||||||
message === "UNIQUE constraint failed: performers.name"
|
message === "UNIQUE constraint failed: performers.name"
|
||||||
|
|||||||
Reference in New Issue
Block a user