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-disambiguation {
white-space: pre;
}
.alias {
font-weight: bold;
white-space: pre;

View File

@@ -322,7 +322,10 @@ export const SettingModal = <T extends {}>(props: ISettingModal<T>) => {
type="submit"
variant="primary"
onClick={() => close(currentValue)}
disabled={!currentValue || (validate && !validate(currentValue))}
disabled={
currentValue === undefined ||
(validate && !validate(currentValue))
}
>
<FormattedMessage id="actions.confirm" />
</Button>

View File

@@ -518,6 +518,6 @@ div.react-datepicker {
}
.react-select-image-option {
align-items: center;
align-items: baseline;
display: flex;
}

View File

@@ -356,7 +356,7 @@ const PerformerTaggerList: React.FC<IPerformerTaggerListProps> = ({
[performerID]: {
message: intl.formatMessage(
{ id: "performer_tagger.failed_to_save_performer" },
{ studio: modalPerformer?.name }
{ performer: modalPerformer?.name }
),
details:
message === "UNIQUE constraint failed: performers.name"