From d46314e57bc763a5e26c7a75a0f5c15bebfa8d92 Mon Sep 17 00:00:00 2001 From: AndcoolSystems Date: Sun, 28 Jul 2024 21:34:02 +0300 Subject: [PATCH] added author link in bandage page --- src/app/styles/editor/page.module.css | 5 +++++ src/app/workshop/[id]/client_code.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/styles/editor/page.module.css b/src/app/styles/editor/page.module.css index 78e3aae..9aea734 100644 --- a/src/app/styles/editor/page.module.css +++ b/src/app/styles/editor/page.module.css @@ -63,6 +63,11 @@ align-items: center; gap: 3px; margin: 0; + text-decoration: none; +} + +.author:hover { + text-decoration: underline; } .author img { diff --git a/src/app/workshop/[id]/client_code.tsx b/src/app/workshop/[id]/client_code.tsx index 72b4fcc..77ffd54 100644 --- a/src/app/workshop/[id]/client_code.tsx +++ b/src/app/workshop/[id]/client_code.tsx @@ -25,6 +25,7 @@ import CategorySelector from '@/app/modules/category_selector.module'; import Footer from '@/app/modules/footer.module'; import { anims } from '../poses'; import asyncImage from '@/app/asyncImage'; +import Link from 'next/link'; const body_part: readonly { value: number, label: String }[] = [ @@ -262,7 +263,7 @@ const Info = ({ el, onClick }: { el: Interfaces.Bandage, onClick(): void }) => { {el?.title} {el?.description &&

{el?.description}

} -

{el?.author.name || "Unknown"}

+ {el?.author.name || "Unknown"} }