Fixes #1666. Fixes #1792. Add scrollbars for modals

This commit is contained in:
JC Brand 2019-12-03 11:08:35 +01:00
parent 9bff567b3c
commit 5809c97828
4 changed files with 21 additions and 33 deletions

View File

@ -17,8 +17,10 @@
- #129: Add support for [XEP-0156: Disovering Alternative XMPP Connection Methods](https://xmpp.org/extensions/xep-0156.html). Only XML is supported for now. - #129: Add support for [XEP-0156: Disovering Alternative XMPP Connection Methods](https://xmpp.org/extensions/xep-0156.html). Only XML is supported for now.
- #1105: Preliminary support for storing persistent data in IndexedDB instead of localStorage - #1105: Preliminary support for storing persistent data in IndexedDB instead of localStorage
- #1666: Allow scrolling of the OMEMO fingerprints list
- #1691: Fix `collection.chatbox is undefined` errors - #1691: Fix `collection.chatbox is undefined` errors
- #1772: `_converse.api.contact.add(jid, nick)` fails, says not a function - #1772: `_converse.api.contact.add(jid, nick)` fails, says not a function
- #1792: Fix: modals don't have scrollbars
- #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode - #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode
### Breaking changes ### Breaking changes

View File

@ -1,6 +1,5 @@
#conversejs.converse-embedded, #conversejs.converse-embedded,
#conversejs { #conversejs {
.badge-room-color { .badge-room-color {
background-color: var(--chatroom-head-color); background-color: var(--chatroom-head-color);
} }
@ -12,17 +11,6 @@
} }
} }
#list-chatrooms-modal {
.modal-body {
max-height: 70vh;
padding-bottom: 0; // When the list of chats overflows, we don't want bottom padding
}
.available-chatrooms {
overflow: auto;
padding-bottom: 1rem;
}
}
#room-details-modal { #room-details-modal {
.features-list { .features-list {
margin-left: 1em; margin-left: 1em;

View File

@ -327,20 +327,6 @@ body.converse-fullscreen {
content: close-quote; content: close-quote;
} }
.modal {
background-color: rgba(0, 0, 0, 0.4);
.modal-body {
p {
padding: 0.25rem 0;
}
}
.modal-footer {
justify-content: flex-start;
}
}
.helptext { .helptext {
font-size: var(--font-size-tiny); font-size: var(--font-size-tiny);
color: var(--text-color-lighten-15-percent); color: var(--text-color-lighten-15-percent);

View File

@ -1,7 +1,15 @@
#conversejs { #conversejs {
#converse-modals { #converse-modals {
.modal {
background-color: rgba(0, 0, 0, 0.4);
.modal-body { .modal-body {
overflow-y: auto;
max-height: 75vh;
margin-bottom: 2em; margin-bottom: 2em;
p {
padding: 0.25rem 0;
}
.confirm { .confirm {
.form-group { .form-group {
p:first-child { p:first-child {
@ -11,6 +19,10 @@
} }
} }
} }
.modal-footer {
justify-content: flex-start;
}
}
.scrollable-container { .scrollable-container {
max-height: 50vh; max-height: 50vh;