Skip to content

Commit f15bffa

Browse files
Merge pull request #140 from NordicPlayground/minor-fix
Use full height if no content is available
2 parents 57e69a6 + c8b020d commit f15bffa

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/PowerEstimation/PowerEstimation.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ export default ({ active }: PaneProps) => {
125125
}, [oppHtml, updatePowerEstimationData]);
126126

127127
return (
128-
<div className="power-estimation-container">
128+
<div
129+
className={`power-estimation-container ${
130+
!oppHtml ? 'full-height' : ''
131+
}`}
132+
>
129133
{isLoading && (
130134
<div className="power-estimation-loading-container">
131135
<div className="power-estimation-loading">

src/components/PowerEstimation/powerEstimation.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
}
2525
}
2626

27-
.power-estimation-container {
27+
.full-height {
2828
height: 100%;
29+
}
30+
31+
.power-estimation-container {
2932
display: flex;
3033
flex-direction: column;
3134

0 commit comments

Comments
 (0)