From c558960ddcd0c663d4eafe41447a162d246e02bd Mon Sep 17 00:00:00 2001 From: Anas Rashid Date: Thu, 8 Oct 2026 22:36:52 +0200 Subject: [PATCH] Text selection menu like Ganjoor's (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Selecting reading text shows a menu by the selection: معنی (word sidebar, single words), تلاش (search Divan, phrases quoted), کاپی (text with poet, title and link), شیئر (link to the page with the selection highlighted via ?hl=; native share sheet where available), قرآن (tanzil.net), گوگل. Escape or clearing the selection closes it; no layout shift. Co-Authored-By: Claude Opus 5.5 --- web/src/layouts/Base.astro | 58 +++++++++++++++++++++++++++++++---- web/src/pages/[...path].astro | 2 +- web/src/styles/global.css | 7 +++++ 3 files changed, 60 insertions(+), 7 deletions(-) diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro index 6c4bb5f3..75407d5c 100644 --- a/web/src/layouts/Base.astro +++ b/web/src/layouts/Base.astro @@ -48,6 +48,14 @@ const fullTitle = title ? `${title} · دیوان` : 'دیوان · اردو ک
+