diff --git a/src/core/client/stream/components/EditCommentForm.tsx b/src/core/client/stream/components/EditCommentForm.tsx index 454ffb41b..d7d79ddd8 100644 --- a/src/core/client/stream/components/EditCommentForm.tsx +++ b/src/core/client/stream/components/EditCommentForm.tsx @@ -15,6 +15,8 @@ import { Button, Flex, HorizontalGutter, + Message, + MessageIcon, RelativeTime, Typography, ValidationMessage, @@ -102,14 +104,15 @@ const EditCommentForm: StatelessComponent = props => { ) : ( - + + alarm } > {"Edit: remaining"} - + )} {props.expired ? ( diff --git a/src/core/client/stream/test/__snapshots__/editComment.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/editComment.spec.tsx.snap index ed29c75d0..6a91b49e0 100644 --- a/src/core/client/stream/test/__snapshots__/editComment.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/editComment.spec.tsx.snap @@ -629,13 +629,13 @@ exports[`edit a comment: edit form 1`] = `
Edit: @@ -1048,13 +1048,13 @@ exports[`edit a comment: optimistic response 1`] = `
Edit: @@ -2481,11 +2481,11 @@ exports[`shows expiry message: edit time expired 1`] = `
diff --git a/src/core/client/ui/components/Message/MessageIcon.css b/src/core/client/ui/components/Message/MessageIcon.css index df730b2de..0104b6cd1 100644 --- a/src/core/client/ui/components/Message/MessageIcon.css +++ b/src/core/client/ui/components/Message/MessageIcon.css @@ -1,4 +1,6 @@ .root { + align-self: flex-start; + margin-top: 1px; &:first-child { margin-right: calc(0.5 * var(--spacing-unit)); } diff --git a/src/core/client/ui/components/Message/index.ts b/src/core/client/ui/components/Message/index.ts index a6d22dd86..84f6b9009 100644 --- a/src/core/client/ui/components/Message/index.ts +++ b/src/core/client/ui/components/Message/index.ts @@ -1 +1,2 @@ -export { default } from "./Message"; +export { default, default as Message } from "./Message"; +export { default as MessageIcon } from "./MessageIcon"; diff --git a/src/core/client/ui/components/index.ts b/src/core/client/ui/components/index.ts index 61970ed25..a6d027393 100644 --- a/src/core/client/ui/components/index.ts +++ b/src/core/client/ui/components/index.ts @@ -20,4 +20,4 @@ export { default as Spinner } from "./Spinner"; export { default as HorizontalGutter } from "./HorizontalGutter"; export { default as Icon } from "./Icon"; export { default as AriaInfo } from "./AriaInfo"; -export { default as Message } from "./Message"; +export { default as Message, MessageIcon } from "./Message";