Allow social chat events to fit content. Use text fallback in avatar. Closes #2719

This commit is contained in:
Gabe Kangas
2023-02-19 14:57:44 -08:00
parent efebcd8d45
commit 529a4c7d84
3 changed files with 34 additions and 13 deletions

View File

@@ -42,3 +42,25 @@ Repost.args = {
link: 'https://mastodon.social/@james',
},
};
export const LongAccountName = Template.bind({});
LongAccountName.args = {
message: {
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
body: 'james shared this stream with their followers.',
title: 'littlejimmywilliams@technology.biz.net.org.technology.gov',
image: 'https://mastodon.social/avatars/original/missing.png',
link: 'https://mastodon.social/@james',
},
};
export const InvalidAvatarImage = Template.bind({});
InvalidAvatarImage.args = {
message: {
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
body: 'james shared this stream with their followers.',
title: 'james@mastodon.social',
image: 'https://xx.xx/avatars/original/missing.png',
link: 'https://mastodon.social/@james',
},
};