Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix word-break in Daylight Saving label. #47

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions src/DevToys.Tools/Tools/Converters/Date/DateConverterGuiTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -846,27 +846,35 @@ private IUICard DstInformation()
.WithChildren(
Grid()
.Rows(
(DateConvertDstGridRow.Daylight, Auto),
(DateConvertDstGridRow.Offset, Auto),
(DateConvertDstGridRow.DateTime, Auto)
(DateConvertDstDaylightGridRow.Content, Auto)
)
.Columns(
(DateConvertDstGridColumn.LeftTitle, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.LeftContent, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.RightTitle, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.RightContent, new UIGridLength(1, UIGridUnitType.Fraction))
(DateConvertDstDaylightGridColumn.Content, new UIGridLength(1, UIGridUnitType.Fraction))
)
.Cells(
Cell(
DateConvertDstGridRow.Daylight,
DateConvertDstGridColumn.LeftTitle,
DateConvertDstDaylightGridRow.Content,
DateConvertDstDaylightGridColumn.Content,
Stack()
.Vertical()
.SmallSpacing()
.WithChildren(
_dstDaylightSavingLabel
)
),
)
),
Grid()
.Rows(
(DateConvertDstGridRow.Offset, Auto),
(DateConvertDstGridRow.DateTime, Auto)
)
.Columns(
(DateConvertDstGridColumn.LeftTitle, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.LeftContent, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.RightTitle, new UIGridLength(1, UIGridUnitType.Fraction)),
(DateConvertDstGridColumn.RightContent, new UIGridLength(1, UIGridUnitType.Fraction))
)
.Cells(
Cell(
DateConvertDstGridRow.Offset,
DateConvertDstGridColumn.LeftTitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ internal enum DateConverterGridTimeColumn

internal enum DateConvertDstGridRow
{
Daylight,
Offset,
DateTime
}
Expand All @@ -46,3 +45,13 @@ internal enum DateConvertDstGridColumn
RightTitle,
RightContent
}

internal enum DateConvertDstDaylightGridRow
{
Content
}

internal enum DateConvertDstDaylightGridColumn
{
Content
}
Loading