Skip to content

Commit

Permalink
fix(Upload): alignment when displaying single DL item (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Nov 5, 2024
1 parent 0ec1388 commit 5f745f5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe.each(['ui', 'sbanken'])('Upload for %s', (themeName) => {

it('have to match disabled file max size', async () => {
const screenshot = await makeScreenshot({
style: { height: '14rem' },
selector: '[data-visual-test="upload-disabled-file-max-size"]',
})
expect(screenshot).toMatchImageSnapshot()
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.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
display: flex;
flex-wrap: wrap;
max-width: 60ch; // to enhance readability
width: 100%;

& dt {
margin-top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ del .dnb-code {
display: flex;
flex-wrap: wrap;
max-width: 60ch;
width: 100%;
}
.dnb-dl__layout--horizontal dt {
margin-top: 0;
Expand Down

0 comments on commit 5f745f5

Please sign in to comment.