diff --git a/css/base.css b/css/base.css index 0e433043..8e338436 100644 --- a/css/base.css +++ b/css/base.css @@ -1164,15 +1164,15 @@ i.search { margin-right: 0.8rem; } -.chat-box .bubble p { +.chat-box .bubble div.message-content { color: #212121; margin: 0; max-width: 36rem; overflow-wrap: break-word; } -/* The timestamp is a floating element. Need to ensure p is expanded +/* The timestamp is a floating element. Need to ensure div.message-content is expanded * to accomodate it. It's usually called clearfix. */ -.chat-box .bubble p:after { +.chat-box .bubble div.message-content:after { content: "."; display: block; height: 0; diff --git a/index-dev.html b/index-dev.html index 5d9c632e..6bc833c5 100644 --- a/index-dev.html +++ b/index-dev.html @@ -29,8 +29,8 @@ - - + +
diff --git a/src/webapp.jsx b/src/webapp.jsx index 5edf81b1..4f9f1b37 100644 --- a/src/webapp.jsx +++ b/src/webapp.jsx @@ -533,6 +533,9 @@ class ContextMenu extends React.Component { e.stopPropagation(); this.props.hide(); let item = this.props.items[e.currentTarget.dataset.id]; + if (typeof item == 'string') { + item = this.MenuItems[item]; + } item.handler(this.props.params, this.props.onError); } @@ -1245,7 +1248,7 @@ class LoginView extends React.Component {