From 1753e20f2909c7733eb1596a3e33b7fa160a6a60 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 23 Aug 2018 18:41:43 -0700 Subject: [PATCH] add label for bots (#479) fixes #463 --- routes/_components/Label.html | 27 +++++++++++++++ .../_components/profile/AccountProfile.html | 11 ++++--- .../profile/AccountProfileHeader.html | 33 ++++++++++++++----- 3 files changed, 57 insertions(+), 14 deletions(-) create mode 100644 routes/_components/Label.html diff --git a/routes/_components/Label.html b/routes/_components/Label.html new file mode 100644 index 00000000..c3a192cd --- /dev/null +++ b/routes/_components/Label.html @@ -0,0 +1,27 @@ +
+ + {label} + +
+ + \ No newline at end of file diff --git a/routes/_components/profile/AccountProfile.html b/routes/_components/profile/AccountProfile.html index e1c906b6..b2578748 100644 --- a/routes/_components/profile/AccountProfile.html +++ b/routes/_components/profile/AccountProfile.html @@ -24,11 +24,11 @@ .account-profile-grid { display: grid; - grid-template-areas: "avatar name followed-by follow" - "avatar username username follow" - "avatar note note follow" - "details details details details"; - grid-template-columns: min-content auto 1fr min-content; + grid-template-areas: "avatar name label followed-by follow" + "avatar username username username follow" + "avatar note note note follow" + "details details details details details"; + grid-template-columns: min-content auto 1fr 1fr min-content; grid-column-gap: 10px; grid-row-gap: 5px; padding: 20px; @@ -53,6 +53,7 @@ .account-profile-grid { display: grid; grid-template-areas: "avatar name follow" + "avatar label follow" "avatar username follow" "avatar followed-by follow" "note note note" diff --git a/routes/_components/profile/AccountProfileHeader.html b/routes/_components/profile/AccountProfileHeader.html index b13af1fa..b0461740 100644 --- a/routes/_components/profile/AccountProfileHeader.html +++ b/routes/_components/profile/AccountProfileHeader.html @@ -2,14 +2,18 @@ +{#if label} +