From 8d7373fa7e8925ad592a235f447fadcd9f9e50bc Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 30 Apr 2025 22:01:43 +0100 Subject: [PATCH] appview: profile: improve profile-card layout on mobile --- appview/pages/templates/repo/tags.html | 4 +++ appview/pages/templates/user/profile.html | 35 ++++++++++++----------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/appview/pages/templates/repo/tags.html b/appview/pages/templates/repo/tags.html index 0c344b62..0dc2fd71 100644 --- a/appview/pages/templates/repo/tags.html +++ b/appview/pages/templates/repo/tags.html @@ -66,6 +66,10 @@ {{ end }} + {{ else }} +

+ This repository does not contain any tags. +

{{ end }} diff --git a/appview/pages/templates/user/profile.html b/appview/pages/templates/user/profile.html index ca5a78d7..0529e58b 100644 --- a/appview/pages/templates/user/profile.html +++ b/appview/pages/templates/user/profile.html @@ -226,30 +226,31 @@ {{ end }} {{ define "profileCard" }} -
-
- {{ if .AvatarUri }} - - {{ end }} -
+
+
+
+ {{ if .AvatarUri }} + + {{ end }} +
+

- {{ didOrHandle .UserDid .UserHandle }} + title="{{ didOrHandle .UserDid .UserHandle }}" + class="text-lg font-bold md:text-center dark:text-white overflow-hidden text-ellipsis whitespace-nowrap max-w-full"> + {{ didOrHandle .UserDid .UserHandle }}

-
- {{ .ProfileStats.Followers }} followers -
- {{ .ProfileStats.Following }} following +
+ {{ .ProfileStats.Followers }} followers + + {{ .ProfileStats.Following }} following
{{ if ne .FollowStatus.String "IsSelf" }} - {{ template "user/fragments/follow" . }} + {{ template "user/fragments/follow" . }} {{ end }} +
+
{{ end }} {{ define "ownRepos" }} -- 2.51.2