Skip to content

Commit

Permalink
Make handle easier to select and copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Mar 4, 2024
1 parent 8492986 commit b264f15
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/blog/components/PostList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export default function PostList(
<hgroup>
<h1>{blog.title}</h1>
<p>
<strong>@{blog.handle}@{domain}</strong> &middot;{" "}
<strong style="user-select: all; cursor: text;">
@{blog.handle}@{domain}
</strong>{" "}
&middot;{" "}
<a href="/followers">
{followers === 1n ? "1 follower" : `${followers} followers`}
</a>{" "}
Expand Down
5 changes: 4 additions & 1 deletion examples/blog/routes/followers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export default async function FollowerList(req: Request) {
<a href="/">{blog.title}</a>
</h1>
<p>
<strong>@{blog.handle}@{domain}</strong> &middot;{" "}
<strong style="user-select: all; cursor: text;">
@{blog.handle}@{domain}
</strong>{" "}
&middot;{" "}
{totalFollowers === 1n
? "1 follower"
: `${totalFollowers} followers`} &middot; {blog.description}
Expand Down
5 changes: 4 additions & 1 deletion examples/blog/routes/posts/[uuid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export default function PostPage(
<a href="/">{blog.title}</a>
</h1>
<p>
<strong>@{blog.handle}@{domain}</strong> &middot;{" "}
<strong style="user-select: all; cursor: text;">
@{blog.handle}@{domain}
</strong>{" "}
&middot;{" "}
<a href="/followers">
{followers === 1n ? "1 follower" : `${followers} followers`}
</a>{" "}
Expand Down

0 comments on commit b264f15

Please sign in to comment.