mirror of
https://codeberg.org/Reuh/feather.git
synced 2025-10-27 10:09:32 +00:00
feat: center videos in default css
This commit is contained in:
parent
0cf1bc5003
commit
13d82f9913
2 changed files with 4 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ class FeatherApp:
|
||||||
print("Synchronizing from server...")
|
print("Synchronizing from server...")
|
||||||
|
|
||||||
new_articles, updated_articles = 0, 0
|
new_articles, updated_articles = 0, 0
|
||||||
grabbed_article_paths: set[ArticleId] = set()
|
grabbed_article_ids: set[ArticleId] = set()
|
||||||
|
|
||||||
categories = client_session.list_categories()
|
categories = client_session.list_categories()
|
||||||
for category in categories:
|
for category in categories:
|
||||||
|
|
@ -148,7 +148,7 @@ class FeatherApp:
|
||||||
remaining = False
|
remaining = False
|
||||||
|
|
||||||
for article in articles:
|
for article in articles:
|
||||||
grabbed_article_paths.add(article.id)
|
grabbed_article_ids.add(article.id)
|
||||||
json_path = article.json_path
|
json_path = article.json_path
|
||||||
if not json_path.exists():
|
if not json_path.exists():
|
||||||
article.write()
|
article.write()
|
||||||
|
|
@ -166,7 +166,7 @@ class FeatherApp:
|
||||||
datetime.now().timestamp() - config.keep_read_articles_for
|
datetime.now().timestamp() - config.keep_read_articles_for
|
||||||
)
|
)
|
||||||
for article in self.iter_articles():
|
for article in self.iter_articles():
|
||||||
if article.id not in grabbed_article_paths:
|
if article.id not in grabbed_article_ids:
|
||||||
# we only sync unread: articles we didn't get from the server were read or purged
|
# we only sync unread: articles we didn't get from the server were read or purged
|
||||||
if config.only_sync_unread_articles:
|
if config.only_sync_unread_articles:
|
||||||
if article.last_write < article_cutoff_timestamp:
|
if article.last_write < article_cutoff_timestamp:
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ article_template = '''
|
||||||
<body style="background-color:black; color:white; font-family:sans-serif; overflow-x:hidden;">
|
<body style="background-color:black; color:white; font-family:sans-serif; overflow-x:hidden;">
|
||||||
<style>
|
<style>
|
||||||
a {color:palevioletred; text-decoration:none;}
|
a {color:palevioletred; text-decoration:none;}
|
||||||
.feather-content img {display:block; margin-left:50%; transform:translateX(-50%); max-width:100vw;}
|
.feather-content img, .feather-content video {display:block; margin-left:50%; transform:translateX(-50%); max-width:100vw;}
|
||||||
</style>
|
</style>
|
||||||
<article style="max-width:min(60rem,100%); margin:auto;">
|
<article style="max-width:min(60rem,100%); margin:auto;">
|
||||||
<p style="display:flex; flex-direction:row; justify-content:space-between;">
|
<p style="display:flex; flex-direction:row; justify-content:space-between;">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue