summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-05-12 12:35:05 -0400
committermorpheus65535 <[email protected]>2021-05-12 12:35:05 -0400
commitcf35f4a9d2ccb792e0fbaa6d110ed5dd39af212d (patch)
tree1ef1c3c7bbd37a3fdc285deab9f334a89ae9368d
parent821ff13b80a0559bb07ca46d3df8a4b5e1ea3102 (diff)
downloadbazarr-cf35f4a9d2ccb792e0fbaa6d110ed5dd39af212d.tar.gz
bazarr-cf35f4a9d2ccb792e0fbaa6d110ed5dd39af212d.zip
Improved readability of toast progress label, overflow of toast message with ellipsis and removed the toast close button considering the auto-dismiss.v0.9.6-beta.5
-rw-r--r--frontend/src/App/notifications/index.tsx2
-rw-r--r--frontend/src/App/notifications/style.scss24
2 files changed, 25 insertions, 1 deletions
diff --git a/frontend/src/App/notifications/index.tsx b/frontend/src/App/notifications/index.tsx
index f55fd5157..d4f3806b4 100644
--- a/frontend/src/App/notifications/index.tsx
+++ b/frontend/src/App/notifications/index.tsx
@@ -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>
diff --git a/frontend/src/App/notifications/style.scss b/frontend/src/App/notifications/style.scss
index 8fb53b696..d8e77a635 100644
--- a/frontend/src/App/notifications/style.scss
+++ b/frontend/src/App/notifications/style.scss
@@ -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;
+ }
+ }
+ }
}
}
}