Improved readability of toast progress label, overflow of toast message with ellipsis and removed the toast close button considering the auto-dismiss.

pull/1407/head v0.9.6-beta.5
morpheus65535 3 years ago
parent 821ff13b80
commit cf35f4a9d2

@ -96,7 +96,7 @@ const ProgressToast: FunctionComponent<ProgressHolderProps> = ({
return (
<Toast onClose={remove}>
<Toast.Header closeButton={!incomplete}>
<Toast.Header closeButton={false}>
<FontAwesomeIcon className="mr-2" icon={faPaperPlane}></FontAwesomeIcon>
<span className="mr-auto">{header}</span>
</Toast.Header>

@ -1,4 +1,9 @@
@import "../../@scss/variable.scss";
@import "../../@scss/bazarr.scss";
@function theme-color($key: "primary") {
@return map-get($theme-colors, $key);
}
.alert-container {
position: fixed;
@ -17,6 +22,25 @@
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
.toast-body {
span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
display: inline-block;
}
.progress {
.progress-bar {
text-shadow: -2px -2px 5px theme-color("primary"),
2px -2px 5px theme-color("primary"),
-2px 2px 5px theme-color("primary"),
2px 2px 5px theme-color("primary");
overflow: visible;
}
}
}
}
}
}

Loading…
Cancel
Save