Skip to content

Commit

Permalink
Revert "publications/filter - add d-none to initial dropdowns to avoi…
Browse files Browse the repository at this point in the history
…d a flash of unstyled (wrongly styled?) content"

This reverts commit a3aed53.
  • Loading branch information
adelikat committed Feb 26, 2024
1 parent a3aed53 commit ca237bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions TASVideos/Pages/Publications/Filter.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,39 @@
<column md="4">
<fieldset>
<label asp-for="Search.Classes"></label>
<select asp-for="Search.Classes" size="@(Math.Min(Model.Tokens.Classes.Count(), 7).ToString())" asp-items="Model.Tokens.Classes.Select(c => new SelectListItem(c, c))" class="form-control d-none"></select>
<select asp-for="Search.Classes" size="@(Math.Min(Model.Tokens.Classes.Count(), 7).ToString())" asp-items="Model.Tokens.Classes.Select(c => new SelectListItem(c, c))" class="form-control"></select>
</fieldset>
<fieldset>
<label asp-for="Search.Years"></label>
<select asp-for="Search.Years" size="@(Math.Min(Model.Tokens.Years.Count(), 7).ToString())" asp-items="Model.Tokens.Years.Select(c => new SelectListItem(c.ToString(), c.ToString()))" class="form-control d-none"></select>
<select asp-for="Search.Years" size="@(Math.Min(Model.Tokens.Years.Count(), 7).ToString())" asp-items="Model.Tokens.Years.Select(c => new SelectListItem(c.ToString(), c.ToString()))" class="form-control"></select>
</fieldset>
<fieldset>
<label asp-for="Search.Genres"></label>
<select asp-for="Search.Genres" size="@(Math.Min(Model.Tokens.Genres.Count(), 7).ToString())" asp-items="Model.Tokens.Genres.Select(c => new SelectListItem(c.ToString(), c.ToString()))" class="form-control d-none"></select>
<select asp-for="Search.Genres" size="@(Math.Min(Model.Tokens.Genres.Count(), 7).ToString())" asp-items="Model.Tokens.Genres.Select(c => new SelectListItem(c.ToString(), c.ToString()))" class="form-control"></select>
</fieldset>
</column>
<column md="4">
<fieldset>
<label asp-for="Search.Flags"></label>
<select asp-for="Search.Flags" size="@(Math.Min(Model.AvailableFlags.Count(), 7).ToString())" asp-items="Model.AvailableFlags" class="form-control d-none"></select>
<select asp-for="Search.Flags" size="@(Math.Min(Model.AvailableFlags.Count(), 7).ToString())" asp-items="Model.AvailableFlags" class="form-control"></select>
</fieldset>
<fieldset>
<label asp-for="Search.GameGroups"></label>
<select asp-for="Search.GameGroups" size="@(Math.Min(Model.AvailableGameGroups.Count(), 7).ToString())" asp-items="Model.AvailableGameGroups" class="form-control d-none"></select>
<select asp-for="Search.GameGroups" size="@(Math.Min(Model.AvailableGameGroups.Count(), 7).ToString())" asp-items="Model.AvailableGameGroups" class="form-control"></select>
</fieldset>
<fieldset>
<label asp-for="Search.Authors"></label>
<select asp-for="Search.Authors" asp-items="Model.AvailableAuthors" class="form-control d-none"></select>
<select asp-for="Search.Authors" asp-items="Model.AvailableAuthors" class="form-control"></select>
</fieldset>
</column>
<column md="4">
<fieldset>
<label asp-for="Search.SystemCodes"></label>
<select asp-for="Search.SystemCodes" size="@(Math.Min(Model.Tokens.SystemCodes.Count(), 7).ToString())" asp-items="Model.Tokens.SystemCodes.OrderBy(c => c).Select(c => new SelectListItem(c, c))" class="form-control d-none"></select>
<select asp-for="Search.SystemCodes" size="@(Math.Min(Model.Tokens.SystemCodes.Count(), 7).ToString())" asp-items="Model.Tokens.SystemCodes.OrderBy(c => c).Select(c => new SelectListItem(c, c))" class="form-control"></select>
</fieldset>
<fieldset>
<label asp-for="Search.Tags"></label>
<select asp-for="Search.Tags" size="@(Math.Min(Model.AvailableTags.Count(), 7).ToString())" asp-items="Model.AvailableTags" class="form-control d-none"></select>
<select asp-for="Search.Tags" size="@(Math.Min(Model.AvailableTags.Count(), 7).ToString())" asp-items="Model.AvailableTags" class="form-control"></select>
</fieldset>
</column>
</row>
Expand Down

0 comments on commit ca237bc

Please sign in to comment.