From 9610c41a8067977fdc7549129235a212d174563b Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Wed, 31 Jul 2019 22:46:36 +0000 Subject: [PATCH] Style updates for messages and comet sigil sizing --- pkg/interface/chat/src/js/components/lib/icons/sigil.js | 2 +- pkg/interface/chat/src/js/components/lib/message.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/interface/chat/src/js/components/lib/icons/sigil.js b/pkg/interface/chat/src/js/components/lib/icons/sigil.js index 2f3227ed0d..8bcbfd69b8 100644 --- a/pkg/interface/chat/src/js/components/lib/icons/sigil.js +++ b/pkg/interface/chat/src/js/components/lib/icons/sigil.js @@ -10,7 +10,7 @@ export class Sigil extends Component { if (props.ship.length > 14) { return ( -
+
); } else { diff --git a/pkg/interface/chat/src/js/components/lib/message.js b/pkg/interface/chat/src/js/components/lib/message.js index 75d020d6fa..6b38a09541 100644 --- a/pkg/interface/chat/src/js/components/lib/message.js +++ b/pkg/interface/chat/src/js/components/lib/message.js @@ -58,7 +58,7 @@ export class Message extends Component { if (typeof url !== 'string') { throw 'Only transmogrify strings!'; } const ship = window.ship; if (url.indexOf('arvo://') === 0) { - return `http://${ship}.arvo.network` + url.split('arvo://')[1]; + return url.split('arvo://')[1]; } return url; } @@ -66,13 +66,14 @@ export class Message extends Component { render() { const { props } = this; let pending = !!props.msg.pending ? ' o-80' : ''; - let timestamp = moment.unix(props.msg.wen / 1000).format('hh:mm a'); let datestamp = moment.unix(props.msg.wen / 1000).format('LL'); - let paddingTop = props.paddingTop ? 'pt2' : ''; + let paddingTop = props.paddingTop ? 'pt3' : ''; let paddingBot = props.paddingBot ? 'pb2' : 'pb1'; if (props.renderSigil) { + let timestamp = moment.unix(props.msg.wen / 1000).format('hh:mm a'); + return (
); } else { + let timestamp = moment.unix(props.msg.wen / 1000).format('hh:mm'); + return (