mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
feat: quality of life sweep from the feature discussions
Small requests from the discussions, each built end to end: planner and map (cycling mode, date first headings, clear a day, stay times per day, off-route stops, map lock, compact unplanned markers, pending stays, cable car, transit quick picks), places (location filter, category from OSM, open in maps, geo: link, image from an attachment, enrichment on file import, places near a pin, place name language, Amap first in China), lists and costs (packed counter, inherited sharing, Markdown to-dos, payment notes, bookings CSV, my plan PDF), sharing (unplanned places, travel only, without photos), journey (photo zoom, drafts, photo order, trip suggestion, day jump), atlas (region counter, region bucket list, places per country), vacay half company holidays, studio copy and paste plus the book's own layouts, and RESTORE_FROM_BACKUP for a first start restore.
This commit is contained in:
@@ -2,6 +2,7 @@ import type { CSSProperties } from 'react'
|
||||
import { Check, ChevronRight, Flag, Calendar, GripVertical, UserRound } from 'lucide-react'
|
||||
import { avatarSrc } from '../../utils/avatarSrc'
|
||||
import type { TodoItem } from '../../types'
|
||||
import MarkdownText from '../shared/MarkdownText'
|
||||
import { katColor, PRIO_CONFIG, type Member } from './todoListModel'
|
||||
|
||||
/** A quiet pill for the row's facts: filled, no frame, the packing list's badge. */
|
||||
@@ -113,8 +114,8 @@ export default function TodoRow({ item, members, categories, today, isSelected,
|
||||
</div>
|
||||
{/* Description preview */}
|
||||
{item.description && (
|
||||
<div style={{ fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'var(--text-faint)', marginTop: 2, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', lineHeight: 1.4 }}>
|
||||
{item.description}
|
||||
<div style={{ fontSize: 'calc(12px * var(--fs-scale-body, 1))', color: 'var(--text-faint)', marginTop: 2, minWidth: 0 }}>
|
||||
<MarkdownText clamp>{item.description}</MarkdownText>
|
||||
</div>
|
||||
)}
|
||||
{/* Priority, date and list as quiet badges */}
|
||||
|
||||
@@ -6,6 +6,7 @@ import CustomSelect from '../shared/CustomSelect'
|
||||
import { CustomDatePicker } from '../shared/CustomDateTimePicker'
|
||||
import NameDialog from '../shared/NameDialog'
|
||||
import { Tooltip } from '../shared/Tooltip'
|
||||
import MarkdownEditable from '../shared/MarkdownEditable'
|
||||
import { GRID_2, LABEL, TEXTAREA } from '../shared/dialogParts'
|
||||
import { PRIO_CONFIG, katColor, taskInputStyle, taskLabelClass, type Member, type TaskFieldValues } from './todoListModel'
|
||||
|
||||
@@ -92,9 +93,14 @@ export default function TodoTaskFields({ values, onChange, categories, members,
|
||||
<textarea value={desc} onChange={e => onChange({ desc: e.target.value })} disabled={!canEdit} rows={3}
|
||||
placeholder={t('todo.descriptionPlaceholder')} className={TEXTAREA} />
|
||||
) : (
|
||||
<textarea value={desc} onChange={e => onChange({ desc: e.target.value })} disabled={!canEdit} rows={4}
|
||||
placeholder={t('todo.descriptionPlaceholder')}
|
||||
style={{ ...taskInputStyle, resize: 'vertical', minHeight: 84 }} />
|
||||
<MarkdownEditable value={desc} canEdit={canEdit} editLabel={t('todo.editDescription')}
|
||||
className="text-content-secondary"
|
||||
style={{ ...taskInputStyle, minHeight: 84, lineHeight: 1.5, overflowWrap: 'break-word' }}
|
||||
renderEditor={editor => (
|
||||
<textarea value={desc} onChange={e => onChange({ desc: e.target.value })} rows={4} {...editor}
|
||||
placeholder={t('todo.descriptionPlaceholder')}
|
||||
style={{ ...taskInputStyle, resize: 'vertical', minHeight: 84 }} />
|
||||
)} />
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user