From aa57dcd78c9277c91f54360c8841809a1a2771e9 Mon Sep 17 00:00:00 2001
From: Anas Rashid
Date: Sat, 10 Oct 2026 00:24:30 +0200
Subject: [PATCH] =?UTF-8?q?Tags=20at=20the=20end=20of=20a=20page:=20=C2=AB?=
=?UTF-8?q?=D9=B9=DB=8C=DA=AF=C2=BB=20at=20the=20start=20of=20the=20line,?=
=?UTF-8?q?=20the=20tags=20following=20it=20on=20the=20same=20line=20and?=
=?UTF-8?q?=20wrapping=20across=20the=20width=20when=20opened=20(a=20sampl?=
=?UTF-8?q?e=20on=20/design)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-Authored-By: Claude Opus 5.5
---
web/src/components/TagsBox.astro | 14 ++++++++------
web/src/pages/design.astro | 4 ++++
web/src/styles/global.css | 20 +++++++++++---------
3 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/web/src/components/TagsBox.astro b/web/src/components/TagsBox.astro
index 2e7a81a4..8ff6fcee 100644
--- a/web/src/components/TagsBox.astro
+++ b/web/src/components/TagsBox.astro
@@ -1,12 +1,14 @@
---
-// a page's tags, folded away at the end of its content (#52): "ٹیگ" and how many; open to see the chips
-import Tags from './Tags.astro';
+// a page's tags at the end of its content (#52): «ٹیگ» and how many, at the start of the line; opened, the tags follow it
+// on the same line and wrap across the content's width. A visually hidden checkbox holds open/closed (no script needed)
import { ud } from '../lib/urdu';
const { tags } = Astro.props as { tags: { type: string; name: string }[] };
+const href = (t: { type: string; name: string }) => `/tag/${encodeURIComponent(t.type)}/${encodeURIComponent(t.name)}`;
---
{tags.length > 0 && (
-
- ٹیگ {ud(tags.length)}
-
-
+
)}
diff --git a/web/src/pages/design.astro b/web/src/pages/design.astro
index 34c4df1b..c517c6ac 100644
--- a/web/src/pages/design.astro
+++ b/web/src/pages/design.astro
@@ -3,6 +3,7 @@
// Switch palette, light/dark and font from the header's display settings.
import Base from '../layouts/Base.astro';
import Icon from '../components/Icon.astro';
+import TagsBox from '../components/TagsBox.astro';
if (import.meta.env.PROD) return new Response(null, { status: 404 });
const colours = [
['surfaces', ['surface-page', 'surface-raised', 'surface-poem', 'surface-sunken']],
@@ -72,6 +73,9 @@ const radii = ['sm', 'md', 'lg', 'pill'];
شائع شدہواپس
+ ٹیگ (صفحے کے آخر میں)
+ ({ type: i % 3 ? 'موضوع' : 'صنف', name }))} />
+
خانے