Prevent post previews from overflowing on Chromium

This commit is contained in:
spikecodes 2021-11-22 08:40:36 -08:00
parent 25e641e7b3
commit 9f8d36cb00
No known key found for this signature in database
GPG Key ID: 004CECFF9B463BCB
3 changed files with 4 additions and 2 deletions

2
Cargo.lock generated
View File

@ -608,7 +608,7 @@ checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119"
[[package]]
name = "libreddit"
version = "0.18.0"
version = "0.18.1"
dependencies = [
"askama",
"async-recursion",

View File

@ -3,7 +3,7 @@ name = "libreddit"
description = " Alternative private front-end to Reddit"
license = "AGPL-3.0"
repository = "https://github.com/spikecodes/libreddit"
version = "0.18.0"
version = "0.18.1"
authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"]
edition = "2018"

View File

@ -845,9 +845,11 @@ a.search_subreddit:hover {
/* Used only for text post preview */
.post_preview {
-webkit-mask-image: linear-gradient(180deg,#000 60%,transparent);;
mask-image: linear-gradient(180deg,#000 60%,transparent);
opacity: 0.8;
max-height: 250px;
overflow: hidden;
}
.post_footer {