@@ -105,7 +105,7 @@ Using the `<Template>` and `<ItemTemplate>` together is not possible - the Templ
105105 <TelerikButton OnClick="@(() => DrawerRef.ToggleAsync())" Icon="@IconName.Menu" />
106106 @if (DrawerExpanded)
107107 {
108- <div class="text-info" style="border-bottom:solid; font-weight: bold; margin-bottom: 3em;">
108+ <div class="text-info" style="border-bottom:solid; font-weight: bold; margin-bottom: 3em; white-space:nowrap ">
109109 My Custom Navigation
110110 </div>
111111 }
@@ -116,14 +116,14 @@ Using the `<Template>` and `<ItemTemplate>` together is not possible - the Templ
116116 </div>
117117 }
118118 </div>
119-
119+
120120 @* custom items rendering and item selection *@
121-
121+
122122 <div class="k-drawer-items">
123123 <ul>
124124 @if (SelectedItem != null && DrawerExpanded)
125125 {
126- <li>
126+ <li class="k-drawer-item" style="white-space:nowrap" >
127127 <div>
128128 <p><strong>@SelectedItem.Text</strong></p>
129129 <p>@SelectedItem.Description</p>
@@ -135,23 +135,23 @@ Using the `<Template>` and `<ItemTemplate>` together is not possible - the Templ
135135 {
136136 @* Use onclick to handle manual item selection *@
137137 <li @onclick="@(() => SelectedItem = item)"
138- class="k-drawer-item @GetSelectedItemClass(item)">
139- <span class="k-icon k-i-@item.Icon" style="margin-right: 8px;"></span>
140- @if (DrawerExpanded)
141- {
142- <div>
143- <div>@item.Text</div>
144- </div>
145- }
138+ class="k-drawer-item @GetSelectedItemClass(item)" style="white-space:nowrap" >
139+ <span class="k-icon k-i-@item.Icon" style="margin-right: 8px;"></span>
140+ @if (DrawerExpanded)
141+ {
142+ <div>
143+ <div>@item.Text</div>
144+ </div>
145+ }
146146 </li>
147147 }
148148 </ul>
149149 </div>
150-
150+
151151 @* the footer *@
152152 @if (DrawerExpanded)
153153 {
154- <div style="text-align: center; margin-top: 3em; padding-top: 2em; border-top: 2px solid black;">
154+ <div style="text-align: center; margin-top: 3em; padding-top: 2em; border-top: 2px solid black; white-space:nowrap ">
155155 <img src="user-avatar.png" alt="my avatar" style="border-radius: 50%; width: 50px; height: 50px;" />
156156 <br /><br />
157157 <TelerikButton Icon="@IconName.Logout" Primary="true">Log Out</TelerikButton>
@@ -168,7 +168,7 @@ Using the `<Template>` and `<ItemTemplate>` together is not possible - the Templ
168168 public DrawerItem SelectedItem { get; set; }
169169 public bool DrawerExpanded { get; set; } = true;
170170 public IEnumerable<DrawerItem> Data { get; set; } = new List<DrawerItem>
171- {
171+ {
172172 new DrawerItem {Text = "Shopping Cart", Icon = IconName.Cart, Description = "Items in shopping cart"},
173173 new DrawerItem {Text = "Settings", Icon = IconName.Gear, Description = "My profile settings"},
174174 new DrawerItem {Text = "Notifications", Icon = IconName.Notification, Description = "My profile notifications"},
0 commit comments