Add some spacing for +10 reactions
This commit is contained in:
parent
6fb38b940a
commit
f974490ff0
2 changed files with 17 additions and 30 deletions
|
@ -1315,6 +1315,7 @@
|
||||||
|
|
||||||
&--with-count {
|
&--with-count {
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
|
padding: 0 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__count {
|
&__count {
|
||||||
|
|
|
@ -30,6 +30,19 @@ import { getDefaultConversation } from '../../test-both/helpers/getDefaultConver
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
||||||
|
function getJoyReaction() {
|
||||||
|
return {
|
||||||
|
emoji: '😂',
|
||||||
|
from: getDefaultConversation({
|
||||||
|
id: '+14155552674',
|
||||||
|
phoneNumber: '+14155552674',
|
||||||
|
name: 'Amelia Briggs',
|
||||||
|
title: 'Amelia',
|
||||||
|
}),
|
||||||
|
timestamp: Date.now() - 10,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const story = storiesOf('Components/Conversation/Message', module);
|
const story = storiesOf('Components/Conversation/Message', module);
|
||||||
|
|
||||||
const renderEmojiPicker: Props['renderEmojiPicker'] = ({
|
const renderEmojiPicker: Props['renderEmojiPicker'] = ({
|
||||||
|
@ -306,16 +319,6 @@ story.add('Reactions (wider message)', () => {
|
||||||
}),
|
}),
|
||||||
timestamp: Date.now() - 10,
|
timestamp: Date.now() - 10,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
emoji: '😂',
|
|
||||||
from: getDefaultConversation({
|
|
||||||
id: '+14155552676',
|
|
||||||
phoneNumber: '+14155552676',
|
|
||||||
name: 'Amelia Briggs',
|
|
||||||
title: 'Amelia',
|
|
||||||
}),
|
|
||||||
timestamp: Date.now() - 10,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
emoji: '😡',
|
emoji: '😡',
|
||||||
from: getDefaultConversation({
|
from: getDefaultConversation({
|
||||||
|
@ -352,11 +355,14 @@ story.add('Reactions (wider message)', () => {
|
||||||
return renderBothDirections(props);
|
return renderBothDirections(props);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const joyReactions = Array.from({ length: 52 }, () => getJoyReaction());
|
||||||
|
|
||||||
story.add('Reactions (short message)', () => {
|
story.add('Reactions (short message)', () => {
|
||||||
const props = createProps({
|
const props = createProps({
|
||||||
text: 'h',
|
text: 'h',
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
reactions: [
|
reactions: [
|
||||||
|
...joyReactions,
|
||||||
{
|
{
|
||||||
emoji: '👍',
|
emoji: '👍',
|
||||||
from: getDefaultConversation({
|
from: getDefaultConversation({
|
||||||
|
@ -388,26 +394,6 @@ story.add('Reactions (short message)', () => {
|
||||||
}),
|
}),
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
emoji: '😂',
|
|
||||||
from: getDefaultConversation({
|
|
||||||
id: '+14155552674',
|
|
||||||
phoneNumber: '+14155552674',
|
|
||||||
name: 'Amelia Briggs',
|
|
||||||
title: 'Amelia',
|
|
||||||
}),
|
|
||||||
timestamp: Date.now(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
emoji: '😂',
|
|
||||||
from: getDefaultConversation({
|
|
||||||
id: '+14155552676',
|
|
||||||
phoneNumber: '+14155552676',
|
|
||||||
name: 'Amelia Briggs',
|
|
||||||
title: 'Amelia',
|
|
||||||
}),
|
|
||||||
timestamp: Date.now(),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
emoji: '😡',
|
emoji: '😡',
|
||||||
from: getDefaultConversation({
|
from: getDefaultConversation({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue