Skip to content

Commit 265b7f3

Browse files
authored
Merge pull request #2210 from plotly/note-wrap
word breaking in notifier
2 parents 599dff9 + 157d07b commit 265b7f3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build/plotcss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var rules = {
5050
"X .select-outline-2": "stroke:black;stroke-dasharray:2px 2px;",
5151
Y: "font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;",
5252
"Y p": "margin:0;",
53-
"Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;",
53+
"Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;",
5454
"Y .notifier-close": "color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;",
5555
"Y .notifier-close:hover": "color:#444;text-decoration:none;cursor:pointer;"
5656
};

src/css/_notifier.scss

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
background-color: rgba(140, 151, 175, 0.9);
2323
color: $color-bg-light;
2424
padding: 10px;
25+
26+
overflow-wrap: break-word;
27+
word-wrap: break-word;
28+
29+
-ms-hyphens: auto;
30+
-webkit-hyphens: auto;
31+
hyphens: auto;
2532
}
2633

2734
.notifier-close {

0 commit comments

Comments
 (0)