Skip to content

Commit

Permalink
fix(Flex): add margin auto offset (#7426)
Browse files Browse the repository at this point in the history
* fix(Flex): margin auto offset

* CHORE: Update screenshots

---------

Co-authored-by: GitHub Action <actions@github.com>
  • Loading branch information
BlackySoul and actions-user authored Aug 26, 2024
1 parent 750f343 commit 0792816
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/vkui/src/components/Flex/Flex.e2e-playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const FlexPlayground = (props: ComponentPlaygroundProps) => {
propSets={[
{
children: [[<ChildNode key="1" />, <ChildNode key="2" />]],
gap: ['m'],
gap: ['m', undefined],
margin: ['auto'],
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/vkui/src/styles/constants.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
--vkui_internal--z_index_horizontal_scroll_arrow: 1;

/* Layout Gaps */
--vkui_internal--row_gap: 0;
--vkui_internal--column_gap: 0;
--vkui_internal--row_gap: 0px;
--vkui_internal--column_gap: 0px;
}

@supports (padding-top: constant(safe-area-inset-top)) {
Expand Down

0 comments on commit 0792816

Please sign in to comment.