Skip to content

Commit 283370e

Browse files
Merge pull request #12 from NenoR96/fixingUI
fix: horizontal scroll on list
2 parents 53cad6e + 84e3394 commit 283370e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/widget/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@
6262
</button>
6363
</form>-->
6464
<div role="separator" class="mdc-list-divider"></div>
65-
<ul class="mdc-list mdc-list--two-line mdc-list--avatar-list" id="inboxMessages">
66-
</ul>
65+
<div class="scrollDiv">
66+
<ul class="mdc-list mdc-list--two-line mdc-list--avatar-list" id="inboxMessages">
67+
</ul>
68+
</div>
69+
6770
<div id="emptyState">
6871
<span class="primaryTextTheme">No results found</span>
6972
<icon class="material-icons icon icon-drawer2 empty-icon"></icon>

src/widget/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,9 @@ span.mdc-chip__primary-action:focus {
197197
}
198198

199199
.mdc-list {
200-
position: absolute;
201-
overflow-y: scroll;
202-
height: 75vh;
203-
width: 100%;
200+
max-height: calc(100vh - 115px);
201+
overflow-y: auto;
202+
overflow-x: hidden;
204203
}
205204

206205
.mdc-list-item__primary-text {

src/widget/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function render(thread, otherUser, chipText, index,callback) {
137137
}
138138
actionItem = JSON.stringify(actionItem);
139139
navigate();
140-
}
140+
} else { actionItem = null; navigate(); }
141141
});
142142

143143
} else {

0 commit comments

Comments
 (0)