Skip to content

Commit fddf903

Browse files
authored
fix(ui5-popover): make sample responsive for small devices (#4527)
The sample popover had 300px width. Part of #4206
1 parent 7d35bd6 commit fddf903

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

packages/main/test/samples/ResponsivePopover.sample.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ <h3>Basic ResponsivePopover</h3>
4242
<ui5-button id="openBtn" design="Emphasized">Open Popover</ui5-button>
4343

4444
<ui5-responsive-popover id="hello-popover" header-text="Newsletter subscription">
45-
<div class="popover-content">
46-
<div class="flex-column">
47-
<ui5-label for="emailInput" required>Email: </ui5-label>
48-
<ui5-input id="emailInput" class="samples-margin-top" placeholder="Enter Email"></ui5-input>
49-
<ui5-label>Note: If you open the page in mobile, dialog would be displayed.</ui5-label>
50-
</div>
45+
<div class="flex-column">
46+
<ui5-label for="emailInput" required>Email: </ui5-label>
47+
<ui5-input id="emailInput" class="samples-margin-top" placeholder="Enter Email"></ui5-input>
48+
<ui5-label>Note: If you open the page in mobile, dialog would be displayed.</ui5-label>
5149
</div>
5250
<div slot="footer" class="popover-footer">
5351
<div style="flex: 1;"></div>

packages/playground/assets/css/api.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ body {
111111
}
112112

113113
.popover-content {
114-
width: 300px;
115-
height: 150px;
114+
margin: 0.5rem;
115+
height: 100px;
116116
display: flex;
117117
flex-direction:column;
118118
justify-content: center;

0 commit comments

Comments
 (0)