Skip to content

Commit

Permalink
Merge pull request #12 from NenoR96/fixingUI
Browse files Browse the repository at this point in the history
fix: horizontal scroll on list
  • Loading branch information
hariszupcevic authored Feb 11, 2021
2 parents 53cad6e + 84e3394 commit 283370e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@
</button>
</form>-->
<div role="separator" class="mdc-list-divider"></div>
<ul class="mdc-list mdc-list--two-line mdc-list--avatar-list" id="inboxMessages">
</ul>
<div class="scrollDiv">
<ul class="mdc-list mdc-list--two-line mdc-list--avatar-list" id="inboxMessages">
</ul>
</div>

<div id="emptyState">
<span class="primaryTextTheme">No results found</span>
<icon class="material-icons icon icon-drawer2 empty-icon"></icon>
Expand Down
7 changes: 3 additions & 4 deletions src/widget/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,9 @@ span.mdc-chip__primary-action:focus {
}

.mdc-list {
position: absolute;
overflow-y: scroll;
height: 75vh;
width: 100%;
max-height: calc(100vh - 115px);
overflow-y: auto;
overflow-x: hidden;
}

.mdc-list-item__primary-text {
Expand Down
2 changes: 1 addition & 1 deletion src/widget/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function render(thread, otherUser, chipText, index,callback) {
}
actionItem = JSON.stringify(actionItem);
navigate();
}
} else { actionItem = null; navigate(); }
});

} else {
Expand Down

0 comments on commit 283370e

Please sign in to comment.