Skip to content

Commit

Permalink
added author link in bandage page
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jul 28, 2024
1 parent 606d96c commit d46314e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app/styles/editor/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
align-items: center;
gap: 3px;
margin: 0;
text-decoration: none;
}

.author:hover {
text-decoration: underline;
}

.author img {
Expand Down
3 changes: 2 additions & 1 deletion src/app/workshop/[id]/client_code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }[] = [
Expand Down Expand Up @@ -262,7 +263,7 @@ const Info = ({ el, onClick }: { el: Interfaces.Bandage, onClick(): void }) => {
{el?.title}
<NextImage className={style.edit_icon} src="/static/icons/edit.svg" alt="" width={32} height={32} /></h2>
{el?.description && <p className={style.description}>{el?.description}</p>}
<p className={style.author}><NextImage src="/static/icons/user.svg" alt="" width={32} height={32} />{el?.author.name || "Unknown"}</p>
<Link className={style.author} href={`/users/${el?.author.username}`}><NextImage src="/static/icons/user.svg" alt="" width={32} height={32} />{el?.author.name || "Unknown"}</Link>
</div>
}

Expand Down

0 comments on commit d46314e

Please sign in to comment.