Skip to content

Commit f35181c

Browse files
KochTobisven1103
andauthored
Fix display of orcid account on Chrome browser (#1305)
* Replace width 100% with flex grow Firefox and chrome interpret 100% inside a flex layout differently. Chrome tries to assign the `spacer` a width of 100% by shrinking the public record component. Leading to a screwed display. By telling the browsers that the spacer should expand instead of that the spacer should fill the full width, both firefox and chrome display the component correctly. * Change CSS class name Co-authored-by: Sven F. <sven1103@users.noreply.github.com> --------- Co-authored-by: KochTobi <kochtobi@users.noreply.github.com> Co-authored-by: Sven F. <sven1103@users.noreply.github.com>
1 parent cbd3591 commit f35181c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

user-interface/frontend/themes/datamanager/components/all.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ Older stuff -
764764
width: 100%;
765765
}
766766

767-
.dynamic-growing-flex-item {
767+
.flex-grow-1 {
768768
flex-grow: 1;
769769
}
770770

user-interface/src/main/java/life/qbic/datamanager/views/account/AccountContentBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public AccountContentBox(String orcidId, URI record) {
4242
publicRecord.add(new Anchor(record.toString(), "View public record", AnchorTarget.BLANK));
4343

4444
var spacer = new Div();
45-
spacer.setWidthFull();
45+
spacer.addClassNames("flex-grow-1");
4646

4747
add(iconContainer, accountInfo, spacer, publicRecord);
4848
}

0 commit comments

Comments
 (0)