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:
DingDongSoLong4
2024-01-29 08:56:39 +02:00
committed by GitHub
parent 1588d1cb4e
commit d82c526ada
4 changed files with 10 additions and 3 deletions

View File

@@ -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;

View File

@@ -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>

View File

@@ -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;
} }

View File

@@ -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"