Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/views/settings/ActivePatternSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ div
|
| Can be used to count time as active, despite no input (like meetings, or games with controllers). An empty string disables it.
|
span.text-nowrap
span
| Example expression: 
code(style="background-color: rgba(200, 200, 200, 0.3); padding: 2px 4px; border-radius: 2px;")
| Zoom Meeting|Google Meet|Microsoft Teams
Expand Down
9 changes: 7 additions & 2 deletions src/visualizations/VisTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ div#visualization {
// Position tooltip above the cursor instead of overlapping the timeline bars
transform: translateY(-100%);
margin-top: -15px;
// Ensure tooltip is readable
max-width: 400px;
// Ensure tooltip is readable. vis-timeline sets `white-space: nowrap`, so
// long unbroken event data (JSON, URLs) would overflow the box and widen
// the whole page on mobile; wrap it and cap the width to the viewport.
max-width: min(400px, calc(100vw - 20px));
box-sizing: border-box;
white-space: normal;
overflow-wrap: anywhere;
pointer-events: none;
}

Expand Down
Loading