Make sender bold

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-02 08:31:42 +02:00
parent e5a563f887
commit 535ae086b4
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
2 changed files with 10 additions and 1 deletions

View File

@ -62,6 +62,10 @@ limitations under the License.
flex-direction: column;
}
.mx_ImageView_info_sender {
font-weight: bold;
}
.mx_ImageView_toolbar {
padding-right: 16px;
pointer-events: all;

View File

@ -266,6 +266,11 @@ export default class ImageView extends React.Component {
}
const senderName = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
const sender = (
<div className="mx_ImageView_info_sender">
{senderName}
</div>
);
const messageTimestamp = (
<a
href={permalink}
@ -288,7 +293,7 @@ export default class ImageView extends React.Component {
<div className="mx_ImageView_info_wrapper">
{avatar}
<div className="mx_ImageView_info">
{senderName}
{sender}
{messageTimestamp}
</div>
</div>