Skip to content

Commit

Permalink
iOS: no need for special rule
Browse files Browse the repository at this point in the history
  • Loading branch information
falkodev committed Oct 6, 2024
1 parent c37f965 commit e2a6af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
7 changes: 0 additions & 7 deletions server/modules/asset/ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ import { DotLottie } from '@lottiefiles/dotlottie-web'

export default () => {
apos.util.onReady(async () => {
const ua = window.navigator.userAgent
alert('ua ====> ', ua)
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
17 changes: 3 additions & 14 deletions server/modules/donate/ui/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
}

@media screen and (min-width: 1250px) {
height: 53px;
width: 115px;
}

Expand All @@ -148,7 +147,7 @@
}

.pdl-donate__amount-input {
height: 41px;
height: 45px;
width: 39px;
border-radius: 4px;
border: 1px solid black;
Expand All @@ -161,20 +160,18 @@
@media (min-width: map-get($breakpoints, 'xs')) {
font-size: 18px;
width: 66px;
height: 41px;
}

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

@media (min-width: map-get($breakpoints, 'md')) {
height: 49px;
height: 53px;
width: 75px;
}

@media screen and (min-width: 1250px) {
height: 50px;
width: 115px;
}

Expand Down Expand Up @@ -284,11 +281,3 @@
}
}
}

.pdl-ios-device {
@media (max-width: map-get($breakpoints, 'md')) {
.pdl-donate__amount-input {
height: 39px !important;
}
}
}

0 comments on commit e2a6af4

Please sign in to comment.