Merge pull request #6585 from mempool/rodribp/fix-goggles-overflow
Some checks failed
Backend Integration Tests with MariaDB / Backend Integration Tests - node 24.13.0 (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Backend (dev) - node 24.13.0 (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Backend (prod) - node 24.13.0 (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Cache assets for builds (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Validate generated backend Docker JSON (push) Has been cancelled
Supply Chain Audit / Backend install-script audit (push) Has been cancelled
Supply Chain Audit / Frontend install-script audit (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Frontend (dev) - node 24.13.0 (push) Has been cancelled
CI Pipeline for the Backend and Frontend / Frontend (prod) - node 24.13.0 (push) Has been cancelled
CI Pipeline for the Backend and Frontend / E2E tests for liquid (push) Has been cancelled
CI Pipeline for the Backend and Frontend / E2E tests for mempool (push) Has been cancelled
CI Pipeline for the Backend and Frontend / E2E tests for testnet4 (push) Has been cancelled

fix: goggles overflow on Y
This commit is contained in:
mononaut 2026-07-05 12:49:56 +09:00 committed by GitHub
commit 8429948d2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 60 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<button class="menu-toggle" (click)="menuOpen = !menuOpen" title="Mempool Goggles&reg;">
<app-svg-images name="goggles" width="100%" height="100%"></app-svg-images>
</button>
<div class="active-tags">
<div class="active-tags" [class.menu-open]="menuOpen">
<ng-container *ngFor="let filter of activeFilters;">
<button class="btn filter-tag selected" (click)="toggleFilter(filter)">{{ filters[filter].label }}</button>
</ng-container>

View file

@ -18,6 +18,41 @@
flex-wrap: wrap;
row-gap: 0.25em;
margin-left: 0.5em;
width: 100%;
&.menu-open {
white-space: nowrap;
flex-wrap: nowrap;
overflow-x: auto;
-ms-overflow-style: none;
scrollbar-width: none;
margin-right: 0.5em;
&::-webkit-scrollbar {
display: none;
}
-webkit-mask-image: linear-gradient(
to right,
transparent 0,
#000 var(--fade-l),
#000 calc(100% - var(--fade-r)),
transparent 100%
);
mask-image: linear-gradient(
to right,
transparent 0,
#000 var(--fade-l),
#000 calc(100% - var(--fade-r)),
transparent 100%
);
animation: goggles-fade-l linear both, goggles-fade-r linear both;
animation-timeline: scroll(self inline);
animation-range:0 1.5em, 0 100%;
animation-duration: 1ms;
}
}
.info-badges {
@ -217,4 +252,27 @@
font-size: 0.5em;
}
}
}
}
@property --fade-l {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@property --fade-r {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@keyframes goggles-fade-l {
to {
--fade-l: 1em;
}
}
@keyframes goggles-fade-r {
from {
--fade-r: 1em;
}
}