Skip to content

Commit

Permalink
normalize tab-pane's all having fade instead of the first one being w…
Browse files Browse the repository at this point in the history
…ithout (#1771)
  • Loading branch information
Masterjun3 authored Feb 6, 2024
1 parent 8222e63 commit 5c5a24d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TASVideos.WikiEngine/MakeTabs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static INode MakeTabs(Element tabset)
new Text(child.CharStart, child.Attributes["data-name"])
})
}));
content.Add(new Element(child.CharStart, "div", new[] { Attr("id", id), Attr("class", "tab-pane" + (first ? " active" : " fade")) }, child.Children));
content.Add(new Element(child.CharStart, "div", new[] { Attr("id", id), Attr("class", "tab-pane fade" + (first ? " active show" : "")) }, child.Children));
first = false;
}

Expand Down
2 changes: 1 addition & 1 deletion TASVideos/Pages/Games/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<div class="tab-content">
@foreach (var movie in Model.Movies)
{
<div id="tab-@(movie.Movie.Id)M" class="tab-pane@(movie==Model.Movies.First() ? " active" : " fade")">
<div id="tab-@(movie.Movie.Id)M" class="tab-pane fade@(movie==Model.Movies.First() ? " active show" : "")">
<partial name="Components/DisplayMiniMovie/Default" model="movie.Movie" />
</div>
}
Expand Down
4 changes: 2 additions & 2 deletions TASVideos/Pages/Shared/_Ratings.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="current">
<div role="tabpanel" class="tab-pane fade active show" id="current">
<table class="table table-bordered">
<tr>
<th>Movie</th>
Expand All @@ -42,7 +42,7 @@
}
</table>
</div>
<div role="tabpanel" class="tab-pane" id="obsolete">
<div role="tabpanel" class="tab-pane fade" id="obsolete">
<table class="table table-bordered">
<tr>
<th>Movie</th>
Expand Down

0 comments on commit 5c5a24d

Please sign in to comment.