Skip to content

Commit

Permalink
Made the comments slightly more verbose to make it clear why the chan…
Browse files Browse the repository at this point in the history
…ges were made.
  • Loading branch information
FaintSpeaker committed Jan 8, 2025
1 parent 6d5332a commit 012be42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Content.Client/CrewManifest/UI/CrewManifestSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public CrewManifestSection(
Text = Loc.GetString($"department-{section.ID}")
});

var departmentContainer = new BoxContainer() // Delta-V - changed type from GridContainer to BoxContainer
// Delta-V - changed type from GridContainer to BoxContainer to better handle long names and titles.
var departmentContainer = new BoxContainer()
{
Orientation = LayoutOrientation.Horizontal,
HorizontalExpand = true,
Expand All @@ -50,7 +51,7 @@ public CrewManifestSection(
departmentContainer.AddChild(titlesContainer);
// Delta-V - end of column BoxContainers.

AddChild(departmentContainer);
AddChild(departmentContainer); // Delta-V - replaced gridContainer with departmentContainer

foreach (var entry in entries)
{
Expand Down Expand Up @@ -104,8 +105,10 @@ public CrewManifestSection(
titleContainer.AddChild(title);
}

// Delta-V - grid container was replaced with two BoxContainer columns
namesContainer.AddChild(nameContainer);
titlesContainer.AddChild(titleContainer);
// Delta-V - end of grid container change
}
}
}

0 comments on commit 012be42

Please sign in to comment.