From 4097e79bbb36d16c464f47beeea5b9c53fe524d3 Mon Sep 17 00:00:00 2001 From: Mattia Succurro Date: Wed, 18 May 2022 02:37:51 +0200 Subject: [PATCH] Style changes --- app.py | 2 +- static/style.css | 1 + templates/edit.html | 27 +++++++++++++++------------ 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/app.py b/app.py index d5ec938..68a6755 100644 --- a/app.py +++ b/app.py @@ -139,7 +139,7 @@ class Page(BaseModel): def get_url(self): return '/' + self.url + '/' if self.url else '/p/{}/'.format(self.id) def short_desc(self): - text = remove_tags(self.latest.text) + text = remove_tags(self.latest.text, convert = not _getconf('site', 'simple_remove_tags', False)) return text[:200] + ('\u2026' if len(text) > 200 else '') def change_tags(self, new_tags): old_tags = set(x.name for x in self.tags) diff --git a/static/style.css b/static/style.css index 04ec6d3..7fdd970 100644 --- a/static/style.css +++ b/static/style.css @@ -46,6 +46,7 @@ input[type="submit"],input[type="reset"],input[type="button"],button{font-family .page-tags .tag-count{color:#3c3;font-size:smaller;font-weight:600} .search-wrapper {display:flex;width:90%;margin:auto} .search-wrapper > input {flex:1} +.preview-subtitle {text-align: center; margin-top: -1em} /* Circles extension */ .circles-red{color: #e14} diff --git a/templates/edit.html b/templates/edit.html index b7a6089..38b5f7b 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -16,22 +16,25 @@ {% block content %} {% if preview %} -

{{ pl_title }} (preview)

- -
-
- Remember this is only a preview. - Your changes were not saved yet! - Jump to editing area
-
{{ preview|safe }}
-
-
+
+

{{ pl_title }}

+
Preview
+ +
+
+ Remember this is only a preview. + Your changes were not saved yet! + Jump to editing area
+
{{ preview|safe }}
+
+
+
{% endif %}
- - + +