Merge pull request #2668 from urbit/mp/link/dib-ing

link: line up link info on same line height
This commit is contained in:
ixv 2020-04-09 15:37:38 -07:00 committed by GitHub
commit 8d32d49daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 11 deletions

View File

@ -129,18 +129,14 @@ export class LinkPreview extends Component {
<span className="gray2 ml2 f8 dib v-btm flex-shrink-0">{hostname} </span>
</a>
<div className="w-100 pt1">
<span className={"f9 pr2 white-d v-mid " + nameClass}
<span className={"f9 pr2 white-d dib " + nameClass}
title={props.ship}>
{props.nickname ? props.nickname : cite(props.ship)}
</span>
<span className="f9 inter gray2 pr3 v-mid">
<span className="f9 inter gray2 pr3 dib">
{this.state.timeSinceLinkPost}
</span>
<Link
to={makeRoutePath(props.resourcePath, props.popout, props.page, props.url, props.linkIndex)}
className="v-top">
<span className="f9 inter gray2">{props.comments}</span>
</Link>
<span className="f9 inter gray2 dib">{props.comments}</span>
</div>
</div>
</div>

View File

@ -79,22 +79,21 @@ export class LinkItem extends Component {
<span className="gray2 dib v-btm ml2 f8 flex-shrink-0">{hostname} </span>
</a>
<div className="w-100 pt1">
<span className={"f9 pr2 v-mid " + mono}
<span className={"f9 pr2 dib " + mono}
title={props.ship}>
{(props.nickname)
? props.nickname
: cite(props.ship)}
</span>
<span
className={seenState + " f9 inter pr3 v-mid"}
className={seenState + " f9 inter pr3 dib"}
onClick={this.markPostAsSeen}>
{this.state.timeSinceLinkPost}
</span>
<Link to=
{makeRoutePath(props.resourcePath, props.popout, props.page, props.url, props.linkIndex)}
className="v-top"
onClick={this.markPostAsSeen}>
<span className="f9 inter gray2">
<span className="f9 inter gray2 dib">
{comments}
</span>
</Link>