Nastaliq note on switching; titles clear of the path line; sliders the same length #108

Merged
anas merged 3 commits from feature/nastaliq-hint into main 2026-10-09 23:20:04 +00:00
Owner

Owner request: when switching fonts, a short message that disappears by itself, saying Nastaliq applies to the content (متن) and not the whole site.

  • Choosing «نستعلیق» in the display settings shows a toast: «نستعلیق صرف کلام اور متن پر؛ باقی سائٹ نسخ میں رہتی ہے». It disappears after about 4 seconds.
  • It appears only when actually switching to Nastaliq: not on page load, not when Nastaliq is already chosen, and not when switching back to Naskh.
  • It uses the site's existing toasts, with a new «info» kind (an ⓘ in the accent colour instead of the ✓).

This explains the font rule from #107.

Checked locally with a phone-width screenshot right after the switch.

Also: Nastaliq titles no longer overlap the path line (owner report). Work, book and poet titles in Nastaliq used the Naskh line height (1.6). Tall letters such as ک and گ reached up into «مرزا غالب » غزل». In Nastaliq they now get line height 2.4 and a little more space above. Checked with screenshots of «نہ تھا کچھ تو خدا تھا» on a phone and a desktop.

Also: the two sliders are the same length (owner report). They were different lengths because each slider took the space its label left, and «نسخ کی موٹائی» is longer than «حروف کا سائز». Both labels now share one column width, so the sliders line up. Checked at 100% and 150% text size.

🤖 Generated with Claude Code

Owner request: when switching fonts, a short message that disappears by itself, saying Nastaliq applies to the content (متن) and not the whole site. - Choosing «نستعلیق» in the display settings shows a toast: «نستعلیق صرف کلام اور متن پر؛ باقی سائٹ نسخ میں رہتی ہے». It disappears after about 4 seconds. - It appears only when actually switching to Nastaliq: not on page load, not when Nastaliq is already chosen, and not when switching back to Naskh. - It uses the site's existing toasts, with a new «info» kind (an ⓘ in the accent colour instead of the ✓). This explains the font rule from #107. Checked locally with a phone-width screenshot right after the switch. **Also: Nastaliq titles no longer overlap the path line** (owner report). Work, book and poet titles in Nastaliq used the Naskh line height (1.6). Tall letters such as ک and گ reached up into «مرزا غالب » غزل». In Nastaliq they now get line height 2.4 and a little more space above. Checked with screenshots of «نہ تھا کچھ تو خدا تھا» on a phone and a desktop. **Also: the two sliders are the same length** (owner report). They were different lengths because each slider took the space its label left, and «نسخ کی موٹائی» is longer than «حروف کا سائز». Both labels now share one column width, so the sliders line up. Checked at 100% and 150% text size. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 1 commit 2026-10-09 23:17:48 +00:00
anas changed title from Nastaliq: a short note on switching that it is for the text to Nastaliq: a note on switching; titles no longer overlap the path line 2026-10-09 23:18:35 +00:00
anas added 1 commit 2026-10-09 23:18:36 +00:00
anas changed title from Nastaliq: a note on switching; titles no longer overlap the path line to Nastaliq note on switching; titles clear of the path line; sliders the same length 2026-10-09 23:19:28 +00:00
anas added 1 commit 2026-10-09 23:19:29 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anas merged commit 12567631a5 into main 2026-10-09 23:20:04 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: anas/divan#108
No description provided.