Closed kexinF closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
zoom-companion-shaomei-test | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 11, 2024 11:03pm |
zoom-companion-test | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 11, 2024 11:03pm |
I added
left: 50%; transform: translateX(-50%);
back. The usage of these two combined are discussed here: https://stackoverflow.com/questions/25982135/why-does-left-50-transform-translatex-50-horizontally-center-an-elementleft: 50%
moves the object based on the size of the parent element (i.e., the page width),translateX(-50%)
moves the object based on its own size (i.e., tab bar width). This ensures the tab bar will always at the center.