Skip to content

Commit

Permalink
fix(client): Fix layout on skeleton containers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gervwyk committed Jun 24, 2022
1 parent 06b7cb1 commit fb38d00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/block/LoadingContainer.js
Expand Up @@ -38,7 +38,7 @@ const LoadingContainer = ({
area={layoutParamsToArea({
area: skeleton.areas[areaKey] || {},
areaKey,
layout: blockLayout ?? {},
layout: skeleton.layout ?? blockLayout,
})}
areaStyle={[areaStyle, skeleton.areas[areaKey] && skeleton.areas[areaKey].style]}
highlightBorders={lowdefy.lowdefyGlobal.highlightBorders}
Expand All @@ -63,7 +63,7 @@ const LoadingContainer = ({
blockStyle={skeleton.style ?? blockStyle}
highlightBorders={lowdefy.lowdefyGlobal.highlightBorders}
id={`s-bl-${blockId}-${skeleton.id}`}
layout={blockLayout ?? {}}
layout={skeleton.layout ?? blockLayout}
makeCssClass={makeCssClass}
>
<Component
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/block/LoadingList.js
Expand Up @@ -39,7 +39,7 @@ const LoadingList = ({
area={layoutParamsToArea({
area: skeleton.areas[areaKey] ?? {},
areaKey,
layout: blockLayout ?? {},
layout: skeleton.layout ?? blockLayout,
})}
areaStyle={[areaStyle, skeleton.areas[areaKey] && skeleton.areas[areaKey].style]}
highlightBorders={lowdefy.lowdefyGlobal.highlightBorders}
Expand All @@ -66,7 +66,7 @@ const LoadingList = ({
blockStyle={skeleton.style ?? blockStyle}
highlightBorders={lowdefy.lowdefyGlobal.highlightBorders}
id={`s-bl-${blockId}-${skeleton.id}`}
layout={blockLayout ?? {}}
layout={skeleton.layout ?? blockLayout}
makeCssClass={makeCssClass}
>
<Component
Expand Down

0 comments on commit fb38d00

Please sign in to comment.