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

iOS Safari Readme close not displaying #1878

Open
TraumaAI opened this issue Feb 8, 2025 · 0 comments
Open

iOS Safari Readme close not displaying #1878

TraumaAI opened this issue Feb 8, 2025 · 0 comments
Labels
frontend Pertains to the frontend. needs-triage

Comments

@TraumaAI
Copy link

TraumaAI commented Feb 8, 2025

iOS Safari Readme Page Close Button out of view (viewport)

When clicking on [readme] on front page the readme displays, however the close "X" button is not visible and can see with hard swipe down but not able to keep in place to click on "X" button to close.

Is there any workaround to adjust to iOS Safari viewport setting correctly?
Other browsers on iOS seem to work appropriately such as Brave.

Current method not working:

custom.css = """

.ns-close-popup {
backface-visibility: visible !important;
touch-action: manipulation;
padding: 12px; /* Minimum tap target size per iOS guidelines */
}

.modal-container {
overscroll-behavior: contain;
position: fixed;
top: env(safe-area-inset-top);
bottom: env(safe-area-inset-bottom);
}

/* Full viewport height */
html, body, #root {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}

/* Flex layout */
#root {
display: flex;
flex-direction: column;
}

/* Dynamic viewport units */
main {
flex: 1;
min-height: calc(100svh - 6rem);
}

/* Lock footer elements */
.input-area {
flex-shrink: 0;
}

.input-area {
padding-bottom: env(safe-area-inset-bottom);
}
"""

Have tried custom javascript with no success:

document.addEventListener('DOMContentLoaded', () => {
const meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';
document.head.prepend(meta);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Pertains to the frontend. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant