Hello, I am trying to make my mobile form fill 100% of remaining height, but it is getting on my nerves. I wanted to distribute all input groups equally but the last one. The last input group should fill 100% height of remaining space. In container I am using a height 100% and a display flex to space-between those two groups ( form and actions buttons ). Follow my codes:
here's my scss:
.business_dialog_tabs_negocio {
min-height: 100%;
gap: 1rem;
padding: 1rem 2rem 2rem 2rem;
@media screen and (max-width: 1024px) {
justify-content: space-between;
}
&_form {
display: grid;
grid-template-areas: 'cliente cliente'
'telefone seguradora'
'ramo premio_estim'
'tem_produto tem_produto'
'obs obs';
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(5, 1fr);
&_group {
&.cliente {grid-area: cliente;}
&.tem_produto {
grid-area: tem_produto; display: flex; align-items: center; gap: 1.2rem;
mat-form-field {width: 56%;}
}
&.telefone {grid-area: telefone;}
&.seguradora {grid-area: seguradora;}
&.ramo {grid-area: ramo;}
&.premio_estim {grid-area: premio_estim;}
&.obs {grid-area: obs;}
}
}
}```