Max Height or enforced height on UDRow or UDCards?

This is probably already addressed somewhere but I didn’t see anything in the documentation and the -Size flag didn’t seem to do the trick.

Is there a way to confine a row to a certain maximum height? I’m trying to line up a few buttons in a row to act as a horizontal navbar for certain content but unable to get something short enough to look good.

I’m not sure how to apply styling to the row or cards if that’s possible.

Here’s the row I’m inserting to the page:

$PageSelector = New-UDLayout -Columns 4 -Content {
    New-UDCard -TextAlignment center -Content {
        New-UDButton -Text "AD Summary" -OnClick {
            Set-UDElement -Id page -Content { $ADSummary }
        }
    }
    New-UDCard -TextAlignment center -Content {
        New-UDButton -Text "User Overview" -OnClick {
            Set-UDElement -Id page -Content { $UserOverview }
        }
    }
    New-UDCard -TextAlignment center -Content {
        New-UDButton -Text "AD Health (Coming Soon!)"
    }
    New-UDCard -TextAlignment center -Content {
        New-UDButton -Text "AD Management (Coming Soon!)"
    }
}

if this what you are looking for ?
image

The code

2 Likes

Aha! That is exactly what I was looking for. I was using a div element for other things, didn’t even think to just set up another one for this row.

Appreciate it a ton!