From a2715d2978a268f4331b6eeb973aa39a55197775 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 17 Apr 2024 05:51:10 +0200 Subject: [PATCH] fix(web): menu sticking on mobile, post sizing --- web/index.html | 3 ++- web/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index 1f7dcc0..d6b17a1 100644 --- a/web/index.html +++ b/web/index.html @@ -51,9 +51,10 @@ position: sticky; } div.sticky { - top: 4em; + top: 1.75rem; position: sticky; background-color: var(--background); + padding-top: .5em; } a.upub-title { color: var(--primary); diff --git a/web/src/lib.rs b/web/src/lib.rs index a66a2cd..8e40637 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -293,7 +293,7 @@ pub fn Object(object: serde_json::Value) -> impl IntoView { let author = CACHE.get(&author_id).unwrap_or(serde_json::Value::String(author_id.clone())); view! {
- +
{move || if !summary.is_empty() { view! {