Skip to content

Commit e09aec3

Browse files
osiastedianTed Ian Osias
andauthored
Improve tooltip text wrapping for SentryNodes registration (#162)
- Add max-width constraint to tooltips (300px) - Enable proper text wrapping with white-space: normal - Add word-wrap: break-word for long text - Improve line-height and padding for better readability - Apply styles to both tooltipSysClass and global ReactTooltip Fixes tooltip display issues where long text like 'Collateral index' info extends horizontally instead of wrapping to multiple lines Co-authored-by: Ted Ian Osias <ted@syscoin.org>
1 parent 5dfad0e commit e09aec3

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/App.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,19 @@ textarea#submitCommand::selection {
188188
width: 100% !important;
189189
max-width: 100% !important;
190190
}
191+
192+
/* Tooltip styles for better text wrapping */
193+
.__react_component_tooltip {
194+
max-width: 300px !important;
195+
white-space: normal !important;
196+
word-wrap: break-word !important;
197+
line-height: 1.4 !important;
198+
text-align: left !important;
199+
}
200+
201+
.__react_component_tooltip p {
202+
margin: 0;
203+
padding: 0;
204+
white-space: normal;
205+
word-wrap: break-word;
206+
}

src/scss/_modal.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,11 @@
108108
.tooltipSysClass {
109109
background: #242652;
110110
border-radius: 5px;
111+
max-width: 300px !important;
112+
white-space: normal;
113+
word-wrap: break-word;
114+
line-height: 1.4;
115+
padding: 8px 12px;
116+
font-size: 14px;
117+
text-align: left;
111118
}

0 commit comments

Comments
 (0)