Comments (4)
@Edgar-P-yan, you can calculate the difference between the height obtained from viewportHeight and window.innerHeight. This will give you the safe zone value. This works just as poorly as the option that Telegram offers. But I don’t know any other options yet =(
from telegram-ios.
I fully support this thread. There is a problem at least in the implementation of the "bottom navbar" component. I would really like to see a non-crutch solution
from telegram-ios.
I don’t understand what the Telegram developers relied on when creating the automatic addition of safe zones. This adds a lot of problems, just like specifying the webview height. The only solution to the problems with safe zones is to keep the classic approach, and not create something crooked.
from telegram-ios.
:root {
--safe-area-inset-bottom: calc(100vh - var(--tg-viewport-stable-height, 100vh))
}
Example
div.safemybottomelement {
padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
}
// another example
div.safemybottomelement2 {
padding-bottom: var(--safe-area-inset-bottom);
}
It's my gift, we can probably close the ticket
from telegram-ios.
Related Issues (20)
- Switch back/front camera bug in attachments HOT 1
- Xcode15.2 build Fail HOT 1
- Video gets out of sync with audio (& is cut off) when switching camera
- iOS notifications not being cleared when viewing new messages in topic-enabled group on Desktop app
- I can't receive the verification code
- The session ends every 7 minutes HOT 2
- In Telegram WebApp, a user rejected a geolocation request. How do I enable it now? navigator.geolocation
- tw HOT 1
- Submitted to Apple Store, but got rejected HOT 1
- xCode updated to 15.4 cannot be packaged HOT 1
- Conflicting amount of media across devices HOT 1
- Publish telegram on appdb
- Add New Language HOT 1
- MiniApp, virtual keyboard overlaps the content and shifts window improperly
- submitted to Apple store, got rejected again. HOT 2
- Sharing URL doesn't work
- 1
- Need to update Telegram sources for new Xcode Version
- S
- code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-ios.