Skip to content

fix(page-columns): align card columns in Safari - #804

Merged
ExaltedTrou6 merged 2 commits into
mainfrom
mpB24Dev/798725-page-columns-safari
Nov 30, 2026
Merged

ExaltedTrou6 merged 2 commits into
mainfrom
mpB24Dev/798725-page-columns-safari

Conversation

@alex-dolganov

Copy link
Copy Markdown
Contributor

Linked issue

Fixes #803.

Type of change

  • Bug fix

Description

Safari can carry the vertical margin of a block card across a column break. That can shift the first card down or leave a column empty. Standard PageCard roots directly inside PageColumns use inline flex in WebKit. Explicit root customizations keep the existing layout, including custom widths and auto margins.

Verification

  • Safari 27.0.1 reproduced the 32 px offset in the comparison. Both columns start at 0 px with the patch.
  • The built docs component passed 60 layouts in WebKit 26 and 60 in Chrome. Chrome card positions and container heights matched the baseline across all tested layouts.
  • Package build, typecheck and ESLint passed. Vitest passed 8,666 tests with 6 skipped.

Checklist

  • I have linked an issue or discussion.

@alex-dolganov
alex-dolganov requested review from SmolyakovGleb and removed request for SmolyakovGleb November 30, 2026 10:19
@alex-dolganov alex-dolganov self-assigned this Nov 30, 2026

@ExaltedTrou6 ExaltedTrou6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверил исправление и оба теста. Настройка заголовка сохраняет исправление для Safari, а настройка корневого элемента позволяет задать карточке ширину и центрирование. Замечание закрыто.

@ExaltedTrou6
ExaltedTrou6 merged commit c8c99fd into main Nov 30, 2026
2 checks passed
@ExaltedTrou6
ExaltedTrou6 deleted the mpB24Dev/798725-page-columns-safari branch November 30, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PageColumns: Safari skips a column / columns start at different heights

2 participants