Skip to content

Commit

Permalink
fix(ui): fix broken width interpolation in KVM compose form (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Ellis authored Jan 21, 2021
1 parent ff92a10 commit 1b17872
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$ratio-total: $subnet-col-ratio + $fabric-col-ratio + $vlan-col-ratio;
$ratio-multiplier: $ratio-total / $subnet-col-ratio;
$padding-multiplier: 100% + #{2 * $sph-inner--small};
$padding: 2 * $sph-inner--small;
$pxe-col-compensation: $pxe-col-width - $sph-inner--small;

@mixin KVMSubnetSelect {
Expand All @@ -14,7 +14,7 @@ $pxe-col-compensation: $pxe-col-width - $sph-inner--small;
max-width: none;
min-width: 0;
width: calc(
#{$ratio-multiplier} * (#{$padding-multiplier}) + #{$pxe-col-compensation}
#{$ratio-multiplier} * (100% + #{$padding}) + #{$pxe-col-compensation}
) !important;

@media only screen and (max-width: $breakpoint-medium) {
Expand Down Expand Up @@ -69,7 +69,7 @@ $pxe-col-compensation: $pxe-col-width - $sph-inner--small;

// PXE
&:nth-child(4) {
width: #{$pxe-col-width - #{3 * $sph-inner--small}};
width: #{$pxe-col-width - 3 * $sph-inner--small};
}

&:not(:last-child) {
Expand Down

0 comments on commit 1b17872

Please sign in to comment.