Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/ndla-ui/src/AudioPlayer/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const AudioPlayerWrapper = styled("div", {
boxShadow: "full",
marginBlockEnd: "4xsmall",
overflow: "hidden",
// Include box-shadow in element size
width: "calc(100% - 4px)",
},
});

Expand Down
2 changes: 2 additions & 0 deletions packages/ndla-ui/src/CampaignBlock/CampaignBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Container = styled("div", {
tabletWide: {
flexDirection: "row",
},
// Include box-shadow in element size
width: "calc(100% - 4px)",
},
});

Expand Down
2 changes: 2 additions & 0 deletions packages/ndla-ui/src/ContactBlock/ContactBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const StyledWrapper = styled("div", {
alignItems: "unset",
flexDirection: "row",
},
// Include box-shadow in element size
width: "calc(100% - 4px)",
},
});

Expand Down
2 changes: 2 additions & 0 deletions packages/ndla-ui/src/ResourceBox/ResourceBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const Container = styled("div", {
gap: "0",
padding: "0",
},
// Include box-shadow in element size
width: "calc(100% - 4px)",
},
});

Expand Down