/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/segment-content/segment-content.scss
30 строк
698 B
Brandy Smith
fix(segment-view): scroll to correct content when height is not set (#30547)
16 июл 2025, 19:06
Не верифицирован
16 июл 2025, 19:06
d14311f
Код
Авторство
О чём код?
// Segment Content // -------------------------------------------------- :host { scroll-snap-align: center; scroll-snap-stop: always; flex-shrink: 0; width: 100%; // Workaround for a Safari/WebKit bug where flexbox children with dynamic // height (e.g., height: fit-content) are not included in the scrollable area // when using horizontal scrolling. This is needed to make the segment view // scroll to the correct content. min-height: 1px; overflow-y: scroll; /* Hide scrollbar in Firefox */ scrollbar-width: none; /* Hide scrollbar in IE and Edge */ -ms-overflow-style: none; /* Hide scrollbar in webkit */ &::-webkit-scrollbar { display: none; } }