File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,13 +156,7 @@ func (ui *BlueprintUI) RenderClusterBlueprint(meta controller.Metadata) {
156156 }
157157
158158 if len (meta .Addons ) > 0 {
159- var sectionContent strings.Builder
160- addonBlock := lipgloss .NewStyle ().
161- BorderStyle (lipgloss .RoundedBorder ()).
162- BorderForeground (lipgloss .Color ("10" )).
163- Padding (1 , 2 ).
164- MarginTop (1 ).
165- Width (70 )
159+ var contentBuilder strings.Builder
166160
167161 for i , addon := range meta .Addons {
168162 addonTitle := color .HiMagentaString (addon .Name )
@@ -191,14 +185,15 @@ func (ui *BlueprintUI) RenderClusterBlueprint(meta controller.Metadata) {
191185 addonInfo += "\n \t " + color .HiCyanString ("CNI Add-on" )
192186 }
193187
194- sectionContent .WriteString (addonBlock . Render ( addonInfo ) )
188+ contentBuilder .WriteString (addonInfo )
195189 if i < len (meta .Addons )- 1 {
196- sectionContent .WriteString ("\n " )
190+ contentBuilder .WriteString ("\n \n " ) // Add spacing between addons
197191 }
198192 }
199193
194+ contentBlock := infoBlock .Render (contentBuilder .String ())
200195 titleBlock := sectionTitle .Render ("🧩 Add-ons" )
201- fullSection := lipgloss .JoinVertical (lipgloss .Left , titleBlock , sectionContent . String () )
196+ fullSection := lipgloss .JoinVertical (lipgloss .Left , titleBlock , contentBlock )
202197
203198 parentBoxContent .WriteString (fullSection )
204199 }
You can’t perform that action at this time.
0 commit comments