mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-08 18:51:55 +00:00
fix: blurred news image background detail in firefox
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
@if (item.image) {
|
@if (item.image) {
|
||||||
<ion-thumbnail style="background-image: url('{{ item.image }}')">
|
<ion-thumbnail [style.--image]="'url(' + item.image + ')'">
|
||||||
<ion-img
|
<ion-img
|
||||||
src="{{ item.image }}"
|
src="{{ item.image }}"
|
||||||
(ionError)="$any($event.target).nextSibling.style.display = 'none'"
|
(ionError)="$any($event.target).nextSibling.style.display = 'none'"
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
:host {
|
:host {
|
||||||
ion-thumbnail {
|
ion-thumbnail {
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: scaleX(-1);
|
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@@ -24,14 +23,20 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
|
|
||||||
background-position: center;
|
&::before {
|
||||||
background-size: contain;
|
content: '';
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
inset: -32px;
|
||||||
|
|
||||||
|
background: var(--image) center / cover;
|
||||||
|
filter: blur(32px);
|
||||||
|
}
|
||||||
|
|
||||||
ion-img {
|
ion-img {
|
||||||
backdrop-filter: blur(32px);
|
position: relative; // above ::before
|
||||||
|
|
||||||
&::part(image) {
|
&::part(image) {
|
||||||
transform: scaleX(-1);
|
|
||||||
max-width: 16cm;
|
max-width: 16cm;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|||||||
Reference in New Issue
Block a user