Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #114 from hipstersmoothie/fix-overflo
Browse files Browse the repository at this point in the history
fix overflow scroll and cut off text
  • Loading branch information
jgw96 authored Jan 6, 2020
2 parents 67c3ffe + 5c44ef8 commit 0f771f6
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions src/pwa-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,25 @@ export class pwainstall extends LitElement {
outline: none;
}
#installModalWrapper {
height: 100vh;
width: 100vw;
overflow: auto;
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
z-index: var(--modal-z-index);
}
#descriptionWrapper {
margin-bottom: 3em;
}
#installModal {
background: var(--modal-background-color);
position: fixed;
bottom: 3em;
top: 3em;
left: 12em;
right: 12em;
margin: 3em 12em;
font-family: sans-serif;
box-shadow: 0px 25px 26px rgba(32, 36, 50, 0.25), 0px 5px 9px rgba(51, 58, 83, 0.53);
border-radius: 10px;
Expand Down Expand Up @@ -357,32 +369,30 @@ export class pwainstall extends LitElement {
@media(min-width: 1445px) {
#installModal {
left: 22em;
right: 22em;
margin-left: 22em;
margin-right: 22em;
}
}
@media(min-width: 1800px) {
#installModal {
left: 26em;
right: 26em;
margin-left: 26em;
margin-right: 26em;
}
}
@media(min-width: 2000px) {
#installModal {
left: 38em;
right: 38em;
margin-left: 38em;
margin-right: 38em;
}
}
@media(max-width: 1220px) {
#installModal {
bottom: 0em;
top: 0em;
left: 0em;
right: 0em;
margin: 0;
border-radius: 0px;
min-height: 100%;
animation-name: mobile;
animation-duration: 250ms;
Expand Down Expand Up @@ -697,6 +707,7 @@ export class pwainstall extends LitElement {
${
this.openmodal ?
html`
<div id="installModalWrapper">
<div id="installModal">
<div id="headerContainer">
<div id="logoContainer">
Expand Down Expand Up @@ -733,6 +744,7 @@ export class pwainstall extends LitElement {
}) : null
}
</ul>
</div>
</div>` : null}
${this.manifestdata.screenshots ?
Expand All @@ -756,7 +768,7 @@ export class pwainstall extends LitElement {
` : null}
</div>
<div>
<div id="descriptionWrapper">
<h3>${this.descriptionheader}</h3>
<p>${this.manifestdata.description}</p>
</div>
Expand Down

0 comments on commit 0f771f6

Please sign in to comment.