Commit graph

18 commits

Author SHA1 Message Date
83f209e44a chore: bump version to 1.2 2026-06-30 15:01:22 +03:00
isaac
8dbbf0f715 Rich-bubble text selection (post-V2 fix)
Design and plan, then implementation: include the details title in
selectableTextItems, restore V2 text selection in the rich bubble,
drop the InstantPageMultiTextAdapter init parameter-name split, and
split LinkHighlightingNode modern-path groups on disjoint rects.
Also includes the IP V2 inline-formula baseline alignment design doc.
2026-05-20 00:33:47 +08:00
isaac
b1aab0839c LinkHighlightingNode: ceil instead of floor for stair-step radii
drawRectsImageContent's modern path computed nextRadius and
prevRadius as min(outerRadius, floor(|Δx| * 0.5)). When |Δx| < 2
the floor produces 0 and the addArc call becomes a no-op,
leaving an unsmoothed corner at the stair-step. Replace floor
with ceil so any non-zero edge mismatch rounds up to at least
1 px. Exact-equality cases (Δx == 0) are unaffected — they take
the else branch with a straight addLine.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 11:46:38 +02:00
isaac
d1c5d66bd3 LinkHighlightingNode: fix X-edge snap unreachable after midY snap
In drawRectsImageContent's modern path the snap loop runs midY
trimming first, leaving rects[i].maxY == rects[i+1].minY for
adjacent line rects. The X-edge snap guard then evaluated
rects[i].insetBy(dx: 0.0, dy: 1.0).intersects(rects[i+1]) — but
positive dy shrinks the rect, so after the trim the guarded
rectangle no longer intersects its neighbor (CGRect.intersects
requires positive-area overlap). Flip dy to -1.0 so the temp
rect grows and touching neighbors satisfy the guard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 11:44:05 +02:00
Isaac
4e45d5f27c Built time 2025-12-30 15:16:10 +08:00
Ali
af8474aca5 [WIP] Quotes and link previews 2023-10-18 01:11:23 +04:00
Ali
ae49ad3700 Stories 2023-08-01 19:57:08 +03:00
Ilya Laktyushin
72fce11e2d Various fixes 2023-01-27 00:57:19 +04:00
Ilya Laktyushin
edc737dce1 Translation fixes 2023-01-26 23:44:50 +04:00
Ilya Laktyushin
e7fb73cadd Channel translation 2023-01-18 01:13:56 +04:00
Ali
6b4cf4b578 Autoremove and forum improvements 2022-11-28 16:15:02 +04:00
Ali
5a81f9fe15 Topic improvements 2022-11-09 20:45:20 +04:00
Ali
f03c3b6cad Fix corner radius 2022-11-09 17:43:54 +04:00
Ali
3f80dd8ef9 Topic improvements 2022-11-09 17:28:59 +04:00
Ali
bc99f54b63 [WIP] General history loading and topic improvements 2022-11-09 10:47:14 +04:00
Ilya Laktyushin
3cafe809f7 Additional links improvements 2022-10-10 13:08:25 +03:00
Ali
3b621f0075 Combo update 2021-06-10 01:15:00 +04:00
Ali
fec9a9b28e Temp 2019-11-14 23:27:44 +04:00
Renamed from submodules/Display/Display/LinkHighlightingNode.swift (Browse further)