Replace hard tabs with soft tabs

This commit is contained in:
Kitaiti Makoto 2022-05-05 18:14:55 +09:00
parent 70b5bee00f
commit 118cfd7166
1 changed files with 5 additions and 5 deletions

View File

@ -8,21 +8,21 @@
@(ctx: BaseContext, tl: Timeline, articles: Vec<Post>, all_tl: Vec<Timeline>, page: i32, n_pages: i32) @(ctx: BaseContext, tl: Timeline, articles: Vec<Post>, all_tl: Vec<Timeline>, page: i32, n_pages: i32)
@:base(ctx, tl.name.clone(), {}, {}, { @:base(ctx, tl.name.clone(), {}, {}, {
<section class="flex wrap" dir="auto"> <section class="flex wrap" dir="auto">
<h1 class="grow">@i18n_timeline_name(ctx.1, &tl.name)</h1> <h1 class="grow">@i18n_timeline_name(ctx.1, &tl.name)</h1>
</section> </section>
@tabs(&vec![(format!("{}", uri!(instance::index)), i18n!(ctx.1, "Latest articles"), false)] @tabs(&vec![(format!("{}", uri!(instance::index)), i18n!(ctx.1, "Latest articles"), false)]
.into_iter().chain(all_tl .into_iter().chain(all_tl
.into_iter() .into_iter()
.map(|t| { .map(|t| {
let url = format!("{}", uri!(timelines::details: id = t.id, page = _)); let url = format!("{}", uri!(timelines::details: id = t.id, page = _));
(url, i18n_timeline_name(ctx.1, &t.name), t.id == tl.id) (url, i18n_timeline_name(ctx.1, &t.name), t.id == tl.id)
}) })
).collect::<Vec<_>>() ).collect::<Vec<_>>()
) )
@if !articles.is_empty() { @if !articles.is_empty() {
<div class="cards"> <div class="cards">
@for article in articles { @for article in articles {
@:post_card(ctx, article) @:post_card(ctx, article)