Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emiMobile
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mac Stephens
emiMobile
Commits
3ddb7957
Commit
3ddb7957
authored
Aug 31, 2026
by
Mac Stephens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
height fixes
parent
72cb3116
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
7 deletions
+30
-7
app.css
webEMIMobile/css/app.css
+7
-6
index.html
webEMIMobile/index.html
+23
-1
No files found.
webEMIMobile/css/app.css
View file @
3ddb7957
...
...
@@ -70,13 +70,14 @@ html, body {
overflow
:
hidden
;
}
/* iOS safe area: absorb status bar into top nav, home indicator into bottom nav */
@supports
(
padding-top
:
env
(
safe-area-inset-top
))
{
#top_nav
{
padding-top
:
calc
(
0.5rem
+
env
(
safe-area-inset-top
));
@supports
(
-webkit-touch-callout
:
none
)
{
/* CSS specific to iOS devices */
span
.card
{
border
:
none
;
/*padding-top: 2em !important;*/
}
#bottom_nav
{
padding-bottom
:
calc
(
0.5rem
+
env
(
safe-area-inset-bottom
))
;
.vh-100
{
height
:
96vh
!important
;
}
}
...
...
webEMIMobile/index.html
View file @
3ddb7957
...
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"width=device-width, initial-scale=1, viewport-fit=cover"
name=
"viewport"
/
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<noscript>
Your browser does not support JavaScript!
</noscript>
<link
href=
"data:;base64,="
rel=
"icon"
/>
<title>
emiMobile
</title>
...
...
@@ -29,6 +29,28 @@
</head>
<body>
<script
type=
"text/javascript"
>
rtl
.
run
();
</script>
<script>
function
setIOSDivHeight
()
{
const
targetDiv
=
document
.
querySelector
(
'body'
);
// Replace with your div ID
if
(
targetDiv
)
{
// Get the inner height of the window
const
height
=
window
.
innerHeight
;
// Apply the height in pixels
targetDiv
.
style
.
maxHeight
=
(
height
-
100
)
+
'px'
;
//alert("set height: " + (height - 100));
}
}
// 2. Attach event listeners for Load, Resize, and Scroll
// Scroll is critical for iOS to handle the address bar expanding/collapsing
const
isIOSUA
=
/iPad|iPhone|iPod/
.
test
(
navigator
.
userAgent
);
if
(
isIOSUA
){
window
.
addEventListener
(
'load'
,
setIOSDivHeight
);
window
.
addEventListener
(
'resize'
,
setIOSDivHeight
);
window
.
addEventListener
(
'scroll'
,
setIOSDivHeight
);
}
</script>
</body>
</html>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment