Fix modal markdown editor sizing

This commit is contained in:
callumalpass 2026-05-16 10:32:19 +10:00
parent d60ceace4b
commit b288fdc70e
14 changed files with 238 additions and 34 deletions

View file

@ -26,6 +26,7 @@ Example:
## Fixed
- Fixed TaskNotes modal markdown editors collapsing to one-character-wide lines when Pretty Properties is installed. Thanks to @bkennedy-improving for reporting.
- Made the markdown editor areas in task modals easier to click and focus.
- Strengthened local CSS linting to catch unscoped selectors, unknown CSS, and fixed-position overlays before review.
- Reduced false-positive plugin review warnings by making background auto-export and auto-archive schedulers non-overlapping and tightening type/string conversion paths.

View file

@ -54,6 +54,10 @@
width: 100%;
}
.tn-task-modal__markdown-editor .cm-sizer {
container-type: normal;
}
.tn-task-modal__markdown-editor--details .cm-sizer,
.tn-task-modal__markdown-editor--details .cm-contentContainer {
flex: 1 1 auto;

View file

@ -1,3 +1,4 @@
{
"alwaysUpdateLinks": true
"alwaysUpdateLinks": true,
"readableLineLength": true
}

View file

@ -3,5 +3,6 @@
"interfaceFontFamily": "",
"textFontFamily": "",
"monospaceFontFamily": "",
"theme": "moonstone"
"theme": "moonstone",
"cssTheme": "Minimal"
}

View file

@ -191,6 +191,61 @@
"order": 3,
"autoArchive": false,
"autoArchiveDelay": 5
},
{
"id": "status_1778676172764",
"value": "test-status-1778676170544",
"label": "Test Status Label",
"color": "#6366f1",
"completed": false,
"isCompleted": false,
"order": 4,
"autoArchive": false,
"autoArchiveDelay": 5
},
{
"id": "status_1778676765190",
"value": "test-status-1778676762902",
"label": "Test Status Label",
"color": "#6366f1",
"completed": false,
"isCompleted": false,
"order": 5,
"autoArchive": false,
"autoArchiveDelay": 5
},
{
"id": "status_1778676807002",
"value": "test-status-1778676804825",
"label": "Test Status Label 1778676804825",
"color": "#6366f1",
"completed": false,
"isCompleted": false,
"order": 6,
"autoArchive": false,
"autoArchiveDelay": 5
},
{
"id": "status_1778677410647",
"value": "test-status-1778677408450",
"label": "Test Status Label 1778677408450",
"color": "#6366f1",
"completed": false,
"isCompleted": false,
"order": 7,
"autoArchive": false,
"autoArchiveDelay": 5
},
{
"id": "status_1778678117158",
"value": "test-status-1778678114925",
"label": "Test Status Label 1778678114925",
"color": "#6366f1",
"completed": false,
"isCompleted": false,
"order": 8,
"autoArchive": false,
"autoArchiveDelay": 5
}
],
"customPriorities": [
@ -221,10 +276,45 @@
"label": "High",
"color": "#ff0000",
"weight": 3
},
{
"id": "priority_1778676180048",
"value": "test-priority-1778676177922",
"label": "Test Priority Label",
"color": "#6366f1",
"weight": 4
},
{
"id": "priority_1778676772787",
"value": "test-priority-1778676770568",
"label": "Test Priority Label",
"color": "#6366f1",
"weight": 5
},
{
"id": "priority_1778676814383",
"value": "test-priority-1778676812216",
"label": "Test Priority Label 1778676812216",
"color": "#6366f1",
"weight": 6
},
{
"id": "priority_1778677418396",
"value": "test-priority-1778677416137",
"label": "Test Priority Label 1778677416137",
"color": "#6366f1",
"weight": 7
},
{
"id": "priority_1778678124921",
"value": "test-priority-1778678122649",
"label": "Test Priority Label 1778678122649",
"color": "#6366f1",
"weight": 8
}
],
"recurrenceMigrated": false,
"lastSeenVersion": "4.4.0",
"lastSeenVersion": "4.6.0",
"showReleaseNotesOnUpdate": true,
"showTrackedTasksInStatusBar": false,
"autoStopTimeTrackingOnComplete": true,
@ -433,22 +523,9 @@
},
"pomodoroState": {
"isRunning": false,
"timeRemaining": 1498,
"currentSession": {
"id": "1771112492792",
"startTime": "2026-02-15T10:41:32.792+11:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-02-15T10:41:32.792+11:00",
"endTime": "2026-02-15T10:41:35.074+11:00"
}
]
}
"timeRemaining": 1500
},
"lastPomodoroDate": "2026-02-14",
"lastPomodoroDate": "2026-05-12",
"pomodoroMobileSidebar": "tab",
"disableOverlayOnAlias": false,
"enableMdbaseSpec": false,
@ -470,5 +547,92 @@
},
"enableMCP": false,
"resetCheckboxesOnRecurrence": false,
"enableDebugLogging": false
"enableDebugLogging": false,
"taskModalTabMovesFocus": true,
"pomodoroHistory": [
{
"id": "1778673367536",
"startTime": "2026-05-13T21:56:07.536+10:00",
"endTime": "2026-05-13T21:56:12.353+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T21:56:07.536+10:00",
"endTime": "2026-05-13T21:56:09.752+10:00"
}
]
},
{
"id": "1778673916565",
"startTime": "2026-05-13T22:05:16.565+10:00",
"endTime": "2026-05-13T22:05:21.295+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T22:05:16.565+10:00",
"endTime": "2026-05-13T22:05:18.715+10:00"
}
]
},
{
"id": "1778674302601",
"startTime": "2026-05-13T22:11:42.601+10:00",
"endTime": "2026-05-13T22:11:47.299+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T22:11:42.601+10:00",
"endTime": "2026-05-13T22:11:44.748+10:00"
}
]
},
{
"id": "1778676342870",
"startTime": "2026-05-13T22:45:42.870+10:00",
"endTime": "2026-05-13T22:45:47.465+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T22:45:42.870+10:00",
"endTime": "2026-05-13T22:45:45.018+10:00"
}
]
},
{
"id": "1778676967411",
"startTime": "2026-05-13T22:56:07.411+10:00",
"endTime": "2026-05-13T22:56:12.006+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T22:56:07.411+10:00",
"endTime": "2026-05-13T22:56:09.560+10:00"
}
]
},
{
"id": "1778677693048",
"startTime": "2026-05-13T23:08:13.048+10:00",
"endTime": "2026-05-13T23:08:17.680+10:00",
"plannedDuration": 25,
"type": "work",
"completed": false,
"activePeriods": [
{
"startTime": "2026-05-13T23:08:13.048+10:00",
"endTime": "2026-05-13T23:08:15.194+10:00"
}
]
}
]
}

View file

@ -94,18 +94,18 @@
},
"left-ribbon": {
"hiddenItems": {
"tasknotes:Open mini calendar view": false,
"tasknotes:Open calendar view": false,
"tasknotes:Open tasks view": false,
"tasknotes:Open agenda view": false,
"tasknotes:Open Kanban board": false,
"tasknotes:Open Pomodoro timer": false,
"tasknotes:Open Pomodoro statistics": false,
"switcher:Open quick switcher": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"command-palette:Open command palette": false,
"bases:Create new base": false,
"tasknotes:Open mini calendar": false,
"tasknotes:Open advanced calendar": false,
"tasknotes:Open task list": false,
"tasknotes:Open agenda": false,
"tasknotes:Open kanban board": false,
"tasknotes:Open pomodoro": false,
"tasknotes:Open pomodoro stats": false,
"tasknotes:Create new task": false
}
},

View file

@ -0,0 +1,11 @@
---
status: open
priority: normal
scheduled: 2026-06-14T00:00
due: 2026-06-14T01:00
tags:
- task
dateModified: 2026-05-13T22:58:03.405+10:00
---
# Future calendar edit

View file

@ -0,0 +1,11 @@
---
status: open
priority: normal
scheduled: 2026-06-14T00:00
due: 2026-06-14T01:00
tags:
- task
dateModified: 2026-05-13T23:09:48.893+10:00
---
# Future calendar edit

View file

@ -0,0 +1,11 @@
---
status: open
priority: normal
scheduled: 2026-06-14T00:00
due: 2026-06-14T01:00
tags:
- task
dateModified: 2026-05-13T22:47:18.248+10:00
---
# Future calendar edit

View file

@ -3,7 +3,7 @@ title: Review project proposal
status: in-progress
priority: high
due: 2025-12-31T15:45
scheduled: 2025-12-29
scheduled: 2025-12-25
tags:
- important
- task
@ -11,7 +11,7 @@ tags:
contexts:
- "@office"
timeEstimate: 120
dateModified: 2026-01-01T09:10:52.337+11:00
dateModified: 2026-05-13T23:15:00.863+10:00
---
# Review project proposal

View file

@ -56,7 +56,7 @@ views:
- file.name
- recurrence
- complete_instances
calendarView: listWeek
calendarView: dayGridMonth
startDateProperty: file.ctime
listDayCount: 7
titleProperty: file.basename

View file

@ -69,7 +69,7 @@ views:
slotMinTime: 06:00:00
slotMaxTime: 22:00:00
slotDuration: 00:30:00
calendarView: timeGridWeek
calendarView: multiMonthYear
slotEventOverlap: false
showScheduledToDueSpan: false
showDue: true

View file

@ -2,7 +2,7 @@
title: Weekly team meeting
status: todo
priority: medium
scheduled: 2025-12-31
scheduled: 2026-01-04
recurrence: FREQ=WEEKLY;BYDAY=MO
tags:
- meeting
@ -12,7 +12,7 @@ contexts:
- "@office"
timeEstimate: 60
due: 2025-12-31
dateModified: 2026-01-01T09:10:48.101+11:00
dateModified: 2026-05-13T23:14:56.745+10:00
---
# Weekly team meeting

View file

@ -3,7 +3,7 @@ title: Write documentation
status: in-progress
priority: normal
due: 2026-01-02
scheduled: 2026-01-07
scheduled: 2026-02-04
tags:
- documentation
- task
@ -17,7 +17,7 @@ timeEntries:
endTime: 2025-12-30T10:45:00
- startTime: 2025-12-30T14:00:00
endTime: 2025-12-30T15:30:00
dateModified: 2026-01-01T09:10:56.553+11:00
dateModified: 2026-05-13T23:15:04.929+10:00
---
# Write documentation