Проблема выравнивания Flexbox в контейнере входа с переключателем функции Flipper ⇐ CSS
-
Anonymous
Проблема выравнивания Flexbox в контейнере входа с переключателем функции Flipper
I'm encountering a layout problem on web page when using the Flipper gem for feature toggling. In the default state (Flipper disabled), I have both sign-up and sign-in containers, and they are correctly centered. However, when the :one_login feature is enabled using Flipper, only the sign-in container is visible, but it's not centered; it appears on the left side of the page.
I suspect this might be due to the changes in the container structure when Flipper is enabled. The relevant code snippet looks like this:
I've attempted to modify the structure by introducing a flex-column container, but the alignment issue persists. Can someone help me ensure that the sign-in container is centered even when the sign-up container is not visible due to Flipper being enabled?
Источник: https://stackoverflow.com/questions/780 ... ure-toggle
I'm encountering a layout problem on web page when using the Flipper gem for feature toggling. In the default state (Flipper disabled), I have both sign-up and sign-in containers, and they are correctly centered. However, when the :one_login feature is enabled using Flipper, only the sign-in container is visible, but it's not centered; it appears on the left side of the page.
I suspect this might be due to the changes in the container structure when Flipper is enabled. The relevant code snippet looks like this:
I've attempted to modify the structure by introducing a flex-column container, but the alignment issue persists. Can someone help me ensure that the sign-in container is centered even when the sign-up container is not visible due to Flipper being enabled?
Источник: https://stackoverflow.com/questions/780 ... ure-toggle
Мобильная версия