fix: enable text wrapping for tasks and events to prevent horizontal scrollbars

- Updated globals.css for .time-slot-task and .time-slot-event row

- Removed white-space: nowrap from GridTaskBlock title span

- Added word-wrap: break-word to simple-view columns
This commit is contained in:
mARTin 2026-02-23 22:13:36 +01:00
parent ce58c3673e
commit 8496c2daa4
2 changed files with 12 additions and 9 deletions

View File

@ -1804,9 +1804,10 @@ h3 {
font-size: var(--weekly-time-task-size, 0.75rem); font-size: var(--weekly-time-task-size, 0.75rem);
font-weight: var(--weekly-time-task-weight, 500); font-weight: var(--weekly-time-task-weight, 500);
cursor: pointer; cursor: pointer;
white-space: nowrap; white-space: normal;
overflow: hidden; word-break: break-word;
text-overflow: ellipsis; overflow: visible;
text-overflow: clip;
transition: color 0.15s ease; transition: color 0.15s ease;
position: relative; position: relative;
z-index: 5; z-index: 5;
@ -1852,10 +1853,11 @@ h3 {
.time-slot-event .event-title-row { .time-slot-event .event-title-row {
display: flex; display: flex;
align-items: center; align-items: flex-start;
gap: 0.25rem; gap: 0.25rem;
white-space: nowrap; white-space: normal;
overflow: hidden; word-break: break-word;
overflow: visible;
} }
.time-slot-event .event-indicator { .time-slot-event .event-indicator {
@ -2862,6 +2864,7 @@ h3 {
border-left: 0px !important; border-left: 0px !important;
margin: 0 10px !important; margin: 0 10px !important;
overflow-x: hidden !important; overflow-x: hidden !important;
word-wrap: break-word;
} }
.simple-view .time-column { .simple-view .time-column {

View File

@ -220,9 +220,9 @@ export function GridTaskBlock({
display: "flex", display: "flex",
alignItems: "flex-start", alignItems: "flex-start",
gap: "3px", gap: "3px",
overflow: "hidden", overflow: "visible",
textOverflow: "ellipsis", whiteSpace: "normal",
whiteSpace: "nowrap", wordBreak: "break-word",
flex: 1, flex: 1,
fontSize: "0.8rem", fontSize: "0.8rem",
}} }}