Skip to content

Commit 2598bed

Browse files
committed
fix #797 Remove hardcoded style from section
1 parent 0a7d4bd commit 2598bed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

domino-ui/src/main/java/org/dominokit/domino/ui/layout/Section.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.dominokit.domino.ui.utils.BaseDominoElement;
2323
import org.dominokit.domino.ui.utils.DominoElement;
2424

25-
/** The component that contains the left pabel and right panel of the {@link Layout} */
25+
/** The component that contains the left panel and right panel of the {@link Layout} */
2626
public class Section extends BaseDominoElement<HTMLElement, Section> {
2727

2828
HTMLElement section;
@@ -38,7 +38,6 @@ public Section() {
3838
.id("rightsidebar")
3939
.css(LayoutStyles.RIGHT_SIDEBAR)
4040
.css(LayoutStyles.OVERLAY_OPEN)
41-
.style("height: calc(100vh - 70px); overflow-y: scroll;")
4241
.element();
4342

4443
section = DominoElement.of(section()).add(leftSide).add(rightSide).element();

domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui-style.css

+1
Original file line numberDiff line numberDiff line change
@@ -2658,6 +2658,7 @@ a {
26582658
-ms-box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
26592659
box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
26602660
overflow: hidden;
2661+
overflow-y: scroll;
26612662
-moz-transition: 0.5s;
26622663
-o-transition: 0.5s;
26632664
-webkit-transition: 0.5s;

0 commit comments

Comments
 (0)