Skip to content

Commit

Permalink
feat(templates): remove responsive settings of dropdown in Boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
msynk authored Jan 7, 2025
1 parent 0d7b7c4 commit 54350f6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@

@if (CultureInfoManager.MultilingualEnabled)
{
<BitDropdown Items="cultures" Responsive
<BitDropdown Items="cultures"
FitWidth NoBorder Transparent
Classes="@(new() { Callout="language-callout" })"
DefaultValue="@CultureInfo.CurrentUICulture.Name"
OnChange="WrapHandled((string c) => OnCultureChanged(c))">
<TextTemplate Context="item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,3 @@ header {
position: absolute;
z-index: $bit-zindex-base;
}

::deep {
.language-callout {
@include lt-sm {
height: unset;
max-width: 225px;
box-shadow: none;
bottom: $bit-env-inset-bottom;
top: $bit-env-inset-top !important;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
Placeholder="@Localizer[nameof(AppStrings.TodoSearchPlaceholder)]"
Styles="@(new() { InputContainer="border:none;background-color:var(--bit-clr-bg-sec)" })" />
<BitStack Class="todo-sort" Gap="2px" Horizontal AutoSize>
<BitDropdown Responsive NoBorder FitWidth
<BitDropdown NoBorder FitWidth
DefaultValue="nameof(AppStrings.Alphabetical)"
TItem="BitDropdownOption<string>" TValue="string"
Classes="@(new() { Callout="todo-sort-callout" })"
OnSelectItem="(BitDropdownOption<string> item) => SortTodoItems(item.Value)"
Styles="@(new() { Container="height:32px;background-color:var(--bit-clr-bg-sec)" })">
<Options>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ section {
}
}

.todo-sort-callout {
@include lt-sm {
height: unset;
box-shadow: none;
bottom: $bit-env-inset-bottom;
top: $bit-env-inset-top !important;
}
}

.todo-list {
width: 100%;
background-color: var(--bit-clr-bg-sec);
Expand Down

0 comments on commit 54350f6

Please sign in to comment.