Skip to content

Commit

Permalink
Fix iOS donate block
Browse files Browse the repository at this point in the history
  • Loading branch information
falkodev committed Oct 6, 2024
1 parent 44a8b8a commit 150f6ae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
6 changes: 6 additions & 0 deletions server/modules/asset/ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { DotLottie } from '@lottiefiles/dotlottie-web'

export default () => {
apos.util.onReady(async () => {
const ua = window.navigator.userAgent
const iosDevice = !!ua.match(/iPad/i) || !!ua.match(/iPhone/i) || (!!ua.match(/Macintosh/i) && !ua.match(/Chrome/i))
if (iosDevice) {
document.body.classList.add('pdl-ios-device')
}

/********************************/
/* start header logo animation */
/*******************************/
Expand Down
15 changes: 15 additions & 0 deletions server/modules/donate/ui/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

@media (min-width: map-get($breakpoints, 'sm')) {
width: fit-content;
max-width: 50vw;
}
}

Expand Down Expand Up @@ -111,6 +112,8 @@
border: 1px solid black;
background-color: transparent;
font-weight: 500;
color: black;
padding: 5px;

@media (min-width: map-get($breakpoints, 'xs')) {
width: 71px;
Expand Down Expand Up @@ -157,6 +160,10 @@
@media (min-width: map-get($breakpoints, 'xs')) {
font-size: 18px;
width: 66px;
height: 41px;
}

@media (min-width: map-get($breakpoints, 'sm')) {
height: 46px;
}

Expand Down Expand Up @@ -276,3 +283,11 @@
}
}
}

.pdl-ios-device {
@media (min-width: map-get($breakpoints, 'sm')) and (max-width: map-get($breakpoints, 'md')) {
.pdl-donate__amount-input {
height: 39px;
}
}
}
8 changes: 5 additions & 3 deletions server/modules/highlight-items-widget/ui/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ body { overflow: hidden; }
margin-bottom: 18px;

@media (min-width: map-get($breakpoints, 'sm')) {
height: 380px;
max-height: 500px;
}
@media (min-width: map-get($breakpoints, 'md')) {
max-height: none;
height: 767px;
margin-bottom: 40px;
}
Expand Down Expand Up @@ -236,12 +237,13 @@ body { overflow: hidden; }

.pdl-highlight-widget__slider {
cursor: pointer;
position: absolute;
bottom: 20px;
position: relative;
margin-top: 20px;
display: flex;
gap: 8px;

@media (min-width: map-get($breakpoints, 'md')) {
position: absolute;
bottom: 40px;
}

Expand Down

0 comments on commit 150f6ae

Please sign in to comment.