Skip to content

Commit

Permalink
Fix responive issues in long pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
chamathns committed Apr 15, 2021
1 parent 7b021ef commit 8aa9437
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export const AccessConfiguration: FunctionComponent<AccessConfigurationPropsInte
}

return (
<EmphasizedSegment className="protocol-settings-section" padded="very">
<EmphasizedSegment className="protocol-settings-section form-wrapper with-max-height" padded="very">
{
Object.values(SupportedAuthProtocolTypes).includes(selectedProtocol as SupportedAuthProtocolTypes)
? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,3 +731,21 @@
}
}
}

/*-------------------------------
Form Container Styles
--------------------------------*/
.form-wrapper {
&.with-max-height {
max-height: @formWrapperMaxHeight;
overflow: auto;
}
}
.form-container {
&.with-max-width {
max-width: @formContainerMaxWidth;
}
&.subject-attribute-selection {
max-width: @applicationSubjectSelectWidth;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,11 @@
--------------------------------*/

@idpTemplateGridPaddingTop: 1.5em;

/*----------------------------------
Form Container
------------------------------------*/

@formContainerMaxWidth: 750px;
@formWrapperMaxHeight: 55vh;
@applicationSubjectSelectWidth: 820px;
12 changes: 0 additions & 12 deletions modules/theme/src/themes/default/collections/grid.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,3 @@
}
}
}

/*----------------------------------
Form Grids
------------------------------------*/

.ui.grid {
&.form-container {
&.with-max-width {
max-width: @formGridContainerMaxWidth;
}
}
}

0 comments on commit 8aa9437

Please sign in to comment.