This commit is contained in:
ari committed 2022-08-18 11:21:51 -04:00
1 parent 819a76f8e3
commit f8f6d74d6a
4 files changed
+24 -14

No files matched your search

@@ -2,16 +2,6 @@
max-height: 2em;
}
.input-text-view.view span {
height: 100%;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
word-wrap: break-word;
line-break: loose;
overflow-wrap: break-word;
}
.input-text-view.edit .MuiFilledInput-input {
padding-top: 0.5em;
padding-bottom: 0.5em;
@@ -32,11 +32,13 @@ export const InputTextView: FC<PropsWithChildren<InputTextViewProps>> = (
onClick={() => !props.disabled && setViewMode(false)}
>
{!!props.value ? (
<span>{props.value}</span>
<div className="input-text-view--text text-ellipsis">
<span>{props.value}</span>
</div>
) : (
<span className="input-text-view--placeholder">
{props.placeholder}
</span>
<div className="input-text-view--text input-text-view--placeholder text-ellipsis">
<span>{props.placeholder}</span>
</div>
)}
{!props.disabled && (
<ModeEditOutlineOutlinedIcon className="input-text-view--edit" />