Skip to content

Commit

Permalink
getting-started: fix styling for small viewports (#12825)
Browse files Browse the repository at this point in the history
This commit adds a `className` and styling to the main div containing the
getting-started content and the preferences which fixes the overlapping
checkbox for small viewports.

Signed-off-by: Vlad Arama <vlad.arama@ericsson.com>
  • Loading branch information
vladarama authored Aug 21, 2023
1 parent a472e72 commit 3a49fca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export class GettingStartedWidget extends ReactWidget {
* Render the content of the widget.
*/
protected render(): React.ReactNode {
return <div>
<div className='gs-container'>
return <div className='gs-container'>
<div className='gs-content-container'>
{this.renderHeader()}
<hr className='gs-hr' />
<div className='flex-grid'>
Expand Down
13 changes: 8 additions & 5 deletions packages/getting-started/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ body {
}

.gs-container {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

.gs-content-container {
padding: 20px;
}

.gs-container a {
.gs-content-container a {
cursor: pointer;
}

Expand Down Expand Up @@ -92,14 +99,10 @@ body {

.gs-preference-container {
display: flex;
position: absolute;
bottom: 0;
width: 100%;
justify-content: center;
}

.gs-preference {
margin-top: 20px;
margin-bottom: 20px;
display: flex;
align-items: center;
Expand Down

0 comments on commit 3a49fca

Please sign in to comment.