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] 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; + } }