From 0dd31bfbd009465b4f1560c4b7f9cda30f5412dd Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 22 Dec 2023 23:55:57 -0500 Subject: [PATCH] more minor improvements to embeded media --- src/components/messaging/Embed.module.css | 18 ++++++++++ src/components/messaging/EmbedMedia.tsx | 44 ++++++++++++++--------- src/components/messaging/MessageBase.tsx | 4 ++- 3 files changed, 48 insertions(+), 18 deletions(-) diff --git a/src/components/messaging/Embed.module.css b/src/components/messaging/Embed.module.css index 776fd27..41ea2b8 100644 --- a/src/components/messaging/Embed.module.css +++ b/src/components/messaging/Embed.module.css @@ -17,6 +17,7 @@ iframe { .embedImage { cursor: pointer; + border-radius: 8px; } .website { @@ -159,6 +160,7 @@ iframe { .embedThumbnail { margin-left: 16px; + border-radius: 8px; } img.image { @@ -170,3 +172,19 @@ img.image { a { cursor: pointer; } + +.embedGifIcon { + position: absolute; + top: 5px; + left: 5px; +} + +.embedGifIconBg { + position: absolute; + top: 8px; + left: 8px; + width: 18px; + height: 18px; + background: #000000; + border-radius: 4px; +} diff --git a/src/components/messaging/EmbedMedia.tsx b/src/components/messaging/EmbedMedia.tsx index 125809b..03863de 100644 --- a/src/components/messaging/EmbedMedia.tsx +++ b/src/components/messaging/EmbedMedia.tsx @@ -3,6 +3,7 @@ import { APIEmbed, EmbedType } from "@spacebarchat/spacebar-api-types/v9"; import { modalController } from "../../controllers/modals"; +import Icon from "../Icon"; import styles from "./Embed.module.css"; interface Props { @@ -31,7 +32,7 @@ function EmbedMedia({ embed, width, height, thumbnail }: Props) { return (