mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
⚡ airmail style for notifications about direct messages
This commit is contained in:
parent
03fd10d068
commit
26002f4b67
@ -607,15 +607,15 @@ class Status extends ImmutablePureComponent {
|
|||||||
/>
|
/>
|
||||||
</button >
|
</button >
|
||||||
)}
|
)}
|
||||||
<div className='well'>
|
{/*<div className='well'>*/}
|
||||||
|
|
||||||
{status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) &&
|
{/* {status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) &&*/}
|
||||||
<p > oui je cause tout seul, c'est un thread</p >
|
{/* <p > oui je cause tout seul, c'est un thread</p >*/}
|
||||||
}
|
{/* }*/}
|
||||||
{this.props.threadsCompile &&
|
{/* {this.props.threadsCompile &&*/}
|
||||||
<p > les threads sont en mode compilés</p >
|
{/* <p > les threads sont en mode compilés</p >*/}
|
||||||
}
|
{/* }*/}
|
||||||
</div >
|
{/*</div >*/}
|
||||||
<StatusActionBar
|
<StatusActionBar
|
||||||
status={status}
|
status={status}
|
||||||
account={account} {...other}
|
account={account} {...other}
|
||||||
|
@ -150,7 +150,7 @@ class Conversation extends ImmutablePureComponent {
|
|||||||
|
|
||||||
menu.push({ text: intl.formatMessage(messages.delete), action: this.handleDelete });
|
menu.push({ text: intl.formatMessage(messages.delete), action: this.handleDelete });
|
||||||
|
|
||||||
const names = accounts.map(a => <Permalink
|
const names = accounts.map(a => (<Permalink
|
||||||
to={`/accounts/${a.get('id')}`}
|
to={`/accounts/${a.get('id')}`}
|
||||||
href={a.get('url')}
|
href={a.get('url')}
|
||||||
key={a.get('id')}
|
key={a.get('id')}
|
||||||
@ -160,7 +160,7 @@ class Conversation extends ImmutablePureComponent {
|
|||||||
className='display-name__html'
|
className='display-name__html'
|
||||||
dangerouslySetInnerHTML={{ __html: a.get('display_name_html') }}
|
dangerouslySetInnerHTML={{ __html: a.get('display_name_html') }}
|
||||||
/></bdi >
|
/></bdi >
|
||||||
</Permalink >).reduce((prev, cur) => [prev, ', ', cur]);
|
</Permalink >)).reduce((prev, cur) => [prev, ', ', cur]);
|
||||||
|
|
||||||
const handlers = {
|
const handlers = {
|
||||||
reply : this.handleReply,
|
reply : this.handleReply,
|
||||||
@ -221,23 +221,22 @@ class Conversation extends ImmutablePureComponent {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<div className='status__action-bar'>
|
<div className='status__action-bar'>
|
||||||
<IconButton
|
|
||||||
className='status__action-bar-button'
|
|
||||||
title={intl.formatMessage(messages.reply)}
|
|
||||||
icon='reply'
|
|
||||||
onClick={this.handleReply}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className='status__action-bar-dropdown'>
|
<div className='status__action-bar-dropdown'>
|
||||||
<DropdownMenuContainer
|
<DropdownMenuContainer
|
||||||
status={lastStatus}
|
status={lastStatus}
|
||||||
items={menu}
|
items={menu}
|
||||||
icon='ellipsis-h'
|
icon='ellipsis-h'
|
||||||
size={18}
|
|
||||||
direction='right'
|
direction='right'
|
||||||
title={intl.formatMessage(messages.more)}
|
title={intl.formatMessage(messages.more)}
|
||||||
/>
|
/>
|
||||||
</div >
|
</div >
|
||||||
|
<IconButton
|
||||||
|
className='status__action-bar-button conversation_reply'
|
||||||
|
title={intl.formatMessage(messages.reply)}
|
||||||
|
icon='reply'
|
||||||
|
size='15em'
|
||||||
|
onClick={this.handleReply}
|
||||||
|
/>
|
||||||
</div >
|
</div >
|
||||||
</div >
|
</div >
|
||||||
</div >
|
</div >
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ContactsList from './contacts-list';
|
import ContactsList from './contacts-list';
|
||||||
import Conversation from './conversations';
|
|
||||||
|
|
||||||
export default class Messaging extends React.PureComponent {
|
export default class Messaging extends React.PureComponent {
|
||||||
|
|
||||||
@ -48,13 +47,12 @@ export default class Messaging extends React.PureComponent {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// const contactlist = null;
|
|
||||||
return (
|
return (
|
||||||
<div >
|
<div >
|
||||||
messagerie todo
|
messagerie todo
|
||||||
|
|
||||||
<ContactsList />
|
<ContactsList />
|
||||||
<Conversation />
|
{/*<Conversation />*/}
|
||||||
</div >
|
</div >
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -7,16 +7,20 @@ table{
|
|||||||
background: $ui-highlight-color;
|
background: $ui-highlight-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
td, th {
|
td, th {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@extend .text-btn
|
@extend .text-btn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-responsive {
|
.table-responsive {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-striped {
|
.table-striped {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
|
|
||||||
@ -27,9 +31,11 @@ table{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-form {
|
.group-form {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: $font-monospace, monospace;
|
font-family: $font-monospace, monospace;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -114,6 +120,7 @@ code {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
|
background: $ui-highlight-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,18 @@ $messagingBoxHeight: 20em;
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.airmail-border {
|
||||||
|
border: 0.25em solid transparent;
|
||||||
|
border-image: 4 repeating-linear-gradient(-45deg, red 0, red 1em, white 0, white 2em,
|
||||||
|
#58a 0, #58a 3em, white 0, white 4em);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-direct,
|
||||||
|
.item-list .conversation {
|
||||||
|
@extend .airmail-border;
|
||||||
|
}
|
||||||
|
|
||||||
.messaging-box {
|
.messaging-box {
|
||||||
@extend .fixed-box;
|
@extend .fixed-box;
|
||||||
|
|
||||||
@ -20,6 +32,35 @@ $messagingBoxHeight: 20em;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.conversation {
|
||||||
|
&.focusable {
|
||||||
|
&:hover {
|
||||||
|
background: mix($ui-base-color, $ui-secondary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.conversation_reply {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1em;
|
||||||
|
width: 15em;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $ui-highlight-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status__action-bar-dropdown {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1em;
|
||||||
|
width: 10em;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $ui-highlight-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.conversations_list {
|
.conversations_list {
|
||||||
right: 1em;
|
right: 1em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= f.input :locked, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.locked')
|
= f.input :locked, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.locked'), recommended: true
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= f.input :bot, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.bot')
|
= f.input :bot, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.bot')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user