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! {