Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent alignment in Language button and Fix Story description overlapping footer contents, if description text is large #193

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assets/scss/pages/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ $subheader-font-size: 18px;
}

.options-bar {
justify-content: center;
background-color: $eos-white;
border-radius: 10px;
justify-content: center;
padding: 8px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/pages/story.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

&-page {
height: 100vh;
height: 100%;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% height is only taking the 100% for this element in particular. 100vh takes the 100% from the viewport. That's the main difference here. We need the 100vh or a massive workaround that wouldn't make sense to be honest.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this myself, and I can give you the solution to what you're looking for:

use: min-height: calc(100vh - 150px); and remove height

position: relative;
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/LanguageDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const LanguageDropdown = (props) => {
onClick={handleButtonClick}
>
{dropdownState ? (
<EOS_KEYBOARD_ARROW_UP className='eos-icons' />
<EOS_KEYBOARD_ARROW_UP />
) : (
<EOS_KEYBOARD_ARROW_DOWN className='eos-icons' />
<EOS_KEYBOARD_ARROW_DOWN />
)}
&nbsp; <div className='curr'> Language </div>
&nbsp; <div> Language </div>
</Button>
{dropdownState ? (
<div className='dropdown'>
Expand Down