From 3bfb79dd4760be07c9cb260a62238059b768a498 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 28 Jul 2021 11:19:45 +0200 Subject: [PATCH] Improve orgs list page and other UI elements --- public/index.css | 5 +++- src/Header.svelte | 2 +- src/base/orgs/List.svelte | 41 ++++++++++++++++++++++++++++---- src/base/orgs/View.svelte | 4 ++-- src/base/projects/Browser.svelte | 4 ++-- src/utils.ts | 8 ++++++- 6 files changed, 53 insertions(+), 11 deletions(-) diff --git a/public/index.css b/public/index.css index 4ea9b14fb..812d7dcd2 100644 --- a/public/index.css +++ b/public/index.css @@ -338,9 +338,12 @@ label.input { align-items: center; } -span.small, .text-small { +span.small, .text-xsmall { font-size: 0.75rem; } +.text-small { + font-size: 0.875rem; +} button.error:hover { background-color: var(--color-negative); diff --git a/src/Header.svelte b/src/Header.svelte index ec174c04b..d9ae0717d 100644 --- a/src/Header.svelte +++ b/src/Header.svelte @@ -70,7 +70,7 @@ justify-content: center; min-height: 42px; margin-left: 2rem; - width: 10.25rem; + width: 9.25rem; } .connect { display: inline-block; diff --git a/src/base/orgs/List.svelte b/src/base/orgs/List.svelte index 3cc90905a..e787d2486 100644 --- a/src/base/orgs/List.svelte +++ b/src/base/orgs/List.svelte @@ -4,6 +4,7 @@ import Avatar from '@app/Avatar.svelte'; import { Profile } from '@app/profile'; import type { Config } from '@app/config'; + import { formatName, formatAddress } from '@app/utils'; import Loading from '@app/Loading.svelte'; export let config: Config; @@ -14,15 +15,38 @@