File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed
client/src/components/SystemNotification Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 22 margin-top : 16px ;
33 background-color : var (--bg-box );
44 overflow : hidden ;
5+ width : 100% ;
56 > span {
67 color : var (---brand-danger ) !important ;
78 }
1011 color : var (--primary-color ) !important ;
1112 }
1213 }
13- }
14+ }
15+
16+ .textLoop {
17+ white-space : wrap ;
18+ width : 100% ;
19+ overflow : hidden ;
20+ div {
21+ white-space : nowrap ;
22+ overflow : hidden ;
23+ text-overflow : ellipsis ;
24+ width : 100% !important ;
25+ }
26+ }
27+
28+ .overflowEllipse {
29+ white-space : nowrap ;
30+ overflow : hidden ;
31+ text-overflow : ellipsis ;
32+ }
Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ const SystemNotification: React.FC = () => {
1616 type = "info"
1717 icon = { < BellFilled size = { 16 } /> }
1818 message = {
19- < TextLoop interval = { 5000 } >
20- { notices . map ( ( notice ) => (
21- < span dangerouslySetInnerHTML = { { __html : notice } } />
22- ) ) }
23- </ TextLoop >
19+ < div className = { style . textLoop } >
20+ < TextLoop interval = { 5000 } >
21+ { notices . map ( ( notice ) => (
22+ < span className = { style . overflowEllipse } dangerouslySetInnerHTML = { { __html : notice } } />
23+ ) ) }
24+ </ TextLoop >
25+ </ div >
2426 }
2527 />
2628 ) : null ;
You can’t perform that action at this time.
0 commit comments