From 0c1236772146a52a59ab5e29bbe50c06938d14e4 Mon Sep 17 00:00:00 2001 From: Chad Griffis <16548994+gryffs@users.noreply.github.com> Date: Sat, 1 May 2021 23:55:49 +0800 Subject: [PATCH 1/2] Add flexbox to cipher list to correct display center issue. --- src/app/vault/ciphers.component.html | 28 +++++++++++++++------------- src/scss/list.scss | 10 ++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index 9c441dab49..f4663cc6e1 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -12,20 +12,22 @@ (scrolled)="loadMore()"> + [ngClass]="{'active': c.id === activeCipherId}" class="flex-list-item"> - - {{c.name}} - - - {{'shared' | i18n}} - - - - {{'attachments' | i18n}} - - - {{c.subTitle}} + + + {{c.name}} + + + {{'shared' | i18n}} + + + + {{'attachments' | i18n}} + + + {{c.subTitle}} +
diff --git a/src/scss/list.scss b/src/scss/list.scss index 5a50dd7ad5..2757750f92 100644 --- a/src/scss/list.scss +++ b/src/scss/list.scss @@ -130,4 +130,14 @@ } } } + + .flex-cipher-list-item { + flex-direction: column; + flex-wrap: nowrap; + justify-content: center; + align-items: flex-start; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } } From 49748ee05ab49122fe025c0a26bd6d04ff56be82 Mon Sep 17 00:00:00 2001 From: Chad Griffis <16548994+gryffs@users.noreply.github.com> Date: Mon, 3 May 2021 23:31:45 +0800 Subject: [PATCH 2/2] Replace single quote with double quotes in HTML and use div in place of a element. --- src/app/vault/ciphers.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index f4663cc6e1..28e7ed4bfd 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -14,7 +14,7 @@ (contextmenu)="rightClickCipher(c)" href="#" title="{{'viewItem' | i18n}}" [ngClass]="{'active': c.id === activeCipherId}" class="flex-list-item"> - +
{{c.name}} @@ -27,7 +27,7 @@ {{c.subTitle}} - +