Skip to content

Commit

Permalink
Fixes #415
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Dec 1, 2023
1 parent 78d6ecb commit fa1a382
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Public/New-HTMLTabPanel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
$Script:HTMLSchema['TabPanelsList'].Add($TabID)
$TabContent = & $Tabs
if ($TabContent) {
New-HTMLTag -Tag 'div' -Attributes @{ id = $TabID; class = 'flexElement'; style = @{margin = '5px' } } {
if ($Orientation -eq 'vertical') {
$ClassOrientation = 'st-vertical'
}
New-HTMLTag -Tag 'div' -Attributes @{ id = $TabID; class = "flexElement $ClassOrientation"; style = @{margin = '5px' } } {
New-HTMLTag -Tag 'ul' -Attributes @{ class = 'nav' } {
foreach ($Tab in $TabContent) {
New-HTMLTag -Tag 'li' {
Expand All @@ -87,7 +90,6 @@
}
}
$SmartTab = [ordered] @{
orientation = $Orientation
autoAdjustHeight = $false # this fights with Flex
theme = $Theme.ToLower()
}
Expand Down

0 comments on commit fa1a382

Please sign in to comment.