browser - modify styling to remove scrolling glitch in virtual list (#4316)

This commit is contained in:
Patrick Demers 2023-01-06 15:11:34 -06:00 committed by GitHub
parent 36c1665ec5
commit 574c18ba3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 52 additions and 47 deletions

View File

@ -1,9 +1,10 @@
<div <div
role="group" role="group"
appA11yTitle="{{ cipher.name }}" appA11yTitle="{{ cipher.name }}"
class="box-content-row box-content-row-flex virtual-scroll-item" class="virtual-scroll-item"
[ngClass]="{ 'override-last': !last }" [ngClass]="{ 'override-last': !last }"
> >
<div class="box-content-row box-content-row-flex">
<button <button
type="button" type="button"
(click)="selectCipher(cipher)" (click)="selectCipher(cipher)"
@ -47,3 +48,4 @@
> >
</app-action-buttons> </app-action-buttons>
</div> </div>
</div>

View File

@ -115,11 +115,14 @@
&.list { &.list {
margin: 10px 0 20px 0; margin: 10px 0 20px 0;
.box-content { .box-content {
.virtual-scroll-item {
display: inline-block;
width: 100%;
}
.box-content-row { .box-content-row {
padding: 5px 10px;
text-decoration: none; text-decoration: none;
border-radius: $border-radius; border-radius: $border-radius;
margin: 5px;
// background-color: $background-color; // background-color: $background-color;
@include themify($themes) { @include themify($themes) {
@ -230,7 +233,7 @@
position: relative; position: relative;
z-index: 1; z-index: 1;
border-radius: $border-radius; border-radius: $border-radius;
margin: 8px 5px; margin: 3px 5px;
@include themify($themes) { @include themify($themes) {
background-color: themed("boxBackgroundColor"); background-color: themed("boxBackgroundColor");

View File

@ -200,7 +200,7 @@
<p>{{ "noItemsInList" | i18n }}</p> <p>{{ "noItemsInList" | i18n }}</p>
</div> </div>
<cdk-virtual-scroll-viewport <cdk-virtual-scroll-viewport
itemSize="46" itemSize="55"
minBufferPx="400" minBufferPx="400"
maxBufferPx="600" maxBufferPx="600"
*ngIf="ciphers && ciphers.length > 0" *ngIf="ciphers && ciphers.length > 0"

View File

@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<cdk-virtual-scroll-viewport <cdk-virtual-scroll-viewport
itemSize="46" itemSize="55"
minBufferPx="400" minBufferPx="400"
maxBufferPx="600" maxBufferPx="600"
*ngIf="ciphers.length" *ngIf="ciphers.length"