aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-12-31 13:15:19 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-31 13:15:19 +0100
commit9fc98317f9f896ab74b034fa74357cd61157e36b (patch)
treebc21fde99e15f80e6e982ec41b6a59f6d6edc851
parentf905ad772ef577879c5abb3a2e1e137986b45eee (diff)
Fix: Thumbnails alt text overflow (#4085)
* CSS fix * Fix RTL CSS * fix CSS (order)
-rw-r--r--p/themes/base-theme/template.css3
-rw-r--r--p/themes/base-theme/template.rtl.css3
2 files changed, 6 insertions, 0 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index 3ac7eea28..aff353cf6 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -803,8 +803,11 @@ input[type="search"] {
}
.flux .item.thumbnail img {
+ background: repeating-linear-gradient( -45deg, #ddd, #ddd 5px, transparent 5px, transparent 10px );
+ display: inline-block;
width: 100%;
height: 100%;
+ overflow: hidden;
object-fit: cover;
}
diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css
index fd5436ec2..b009d0991 100644
--- a/p/themes/base-theme/template.rtl.css
+++ b/p/themes/base-theme/template.rtl.css
@@ -803,8 +803,11 @@ input[type="search"] {
}
.flux .item.thumbnail img {
+ background: repeating-linear-gradient( 45deg, #ddd, #ddd 5px, transparent 5px, transparent 10px );
+ display: inline-block;
width: 100%;
height: 100%;
+ overflow: hidden;
object-fit: cover;
}