Browse Source

Merge pull request #471 from impiaaa/thread-icon

Add an extra icon to indicate that a status is part of a conversation
closed-social-glitch-2
David Yip 6 years ago
committed by GitHub
parent
commit
0aba716fe1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions
  1. +7
    -1
      app/javascript/flavours/glitch/components/status_icons.js
  2. +6
    -1
      app/javascript/flavours/glitch/styles/components/status.scss

+ 7
- 1
app/javascript/flavours/glitch/components/status_icons.js View File

@ -47,9 +47,15 @@ export default class StatusIcons extends React.PureComponent {
return (
<div className='status__info__icons'>
{status.get('in_reply_to_id', null) !== null ? (
<i
className={`fa fa-fw fa-comment status__reply-icon`}
aria-hidden='true'
/>
) : null}
{mediaIcon ? (
<i
className={`fa fa-fw fa-${mediaIcon}`}
className={`fa fa-fw fa-${mediaIcon} status__media-icon`}
aria-hidden='true'
/>
) : null}

+ 6
- 1
app/javascript/flavours/glitch/styles/components/status.scss View File

@ -331,8 +331,13 @@
height: 1em;
color: $action-button-color;
.status__visibility-icon {
.status__media-icon {
padding-left: 6px;
padding-right: 1px;
}
.status__visibility-icon {
padding-left: 4px;
}
}

Loading…
Cancel
Save