Skip to content

Commit 251953f

Browse files
committed
Fixed issue with column wrapping on sort indicator
Force pass ViewBag.AlignRight down through to right buttons on button strip
1 parent a600bea commit 251953f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("1.0.26.0")]
19-
[assembly: AssemblyFileVersion("1.0.26.0")]
18+
[assembly: AssemblyVersion("1.0.28.0")]
19+
[assembly: AssemblyFileVersion("1.0.28.0")]

Griddly/Views/Shared/Griddly/ButtonStrip.cshtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
}
2828
@foreach (GriddlyButton button in rightButtons)
2929
{
30+
button.AlignRight = true;
31+
3032
if (button.IsSeparator)
3133
{
3234
@:</div>

Griddly/Views/Shared/Griddly/Griddly.cshtml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@
9696
@foreach (GriddlyColumn column in settings.Columns)
9797
{
9898
bool isSortable = !simple && !string.IsNullOrWhiteSpace(column.SortField);
99-
<th class="@column.ClassName @(isSortable ? "sortable" : null) @(column is GriddlySelectColumn ? "select" : null) @(column.DefaultSort != null ? (column.DefaultSort == SortDirection.Descending ? "sorted_d" : "sorted_a") : null)" @Html.AttributeNullable("data-griddly-sortfield", simple ? null : column.SortField)>
100-
@column.Caption
99+
<th class="@column.ClassName @(isSortable ? "sortable" : null) @(column is GriddlySelectColumn ? "select" : null) @(column.DefaultSort != null ? (column.DefaultSort == SortDirection.Descending ? "sorted_d" : "sorted_a") : null)" @Html.AttributeNullable("data-griddly-sortfield", simple ? null : column.SortField)>
101100
@if (isSortable)
102101
{
103-
<span class="icon">&nbsp;</span>
102+
<text>@column.Caption<span class="icon">&nbsp;</span></text>
104103
}
105104
else if (column is GriddlySelectColumn)
106105
{

0 commit comments

Comments
 (0)