Skip to content

Commit

Permalink
cleanup style
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Sep 11, 2024
1 parent 4f099a4 commit 2981553
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/server/web/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn source_control_fragment(
div title="Source" .source { (url) }
}),
Some(Source::Templated(templated)) => Some(html! {
div style="display: flex; position: relative; align-items: baseline; flex-wrap: wrap;" {
div .template-container {
@let queries = param.as_ref().ok().map(|p| p.extra_queries());
(source_template_fragment(templated, path, queries));
}
Expand Down Expand Up @@ -331,7 +331,7 @@ fn render_feed(feed: &Feed) -> Markup {
@if let Some(description) = &preview.description {
p { (description) }
}
p style="clear:both" { (format!("Entries ({}):", preview.posts.len())) }
p { (format!("Entries ({}):", preview.posts.len())) }

@for post in preview.posts {
(render_post(post))
Expand Down Expand Up @@ -452,9 +452,16 @@ fn inline_styles() -> &'static str {
position: relative;
align-items: center;
}
.source-template-placeholder {
width: auto;
display: inline-block;
.source-template-container {
display: flex;
position: relative;
align-items: baseline;
flex-wrap: wrap;
.source-template-placeholder {
width: auto;
display: inline-block;
}
}
Expand Down

0 comments on commit 2981553

Please sign in to comment.