Skip to content

Commit 774e527

Browse files
committed
Add background colour to quote and link prompt in editor
1 parent e1a8e9c commit 774e527

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/inputs/editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ export default function Editor(props: Props) {
161161
linkEmbed ||
162162
(images && images.length > 0) ||
163163
embedSuggestions.size > 0
164-
? "mb-3"
164+
? "my-3"
165165
: ""
166166
}`}
167167
>
168168
{quote && <QuoteToPreview post={quote} />}
169169
{embedSuggestions.size > 0 && (
170-
<div className="mb-3 flex flex-col gap-y-3">
170+
<div className="my-3 flex flex-col gap-y-3">
171171
{Array.from(embedSuggestions).map((link) => (
172172
<LinkCardPrompt
173173
key={link}

src/components/inputs/editor/LinkCardPrompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function LinkCardPrompt(props: Props) {
1111
return (
1212
<button
1313
onClick={() => onAddLinkCard(link)}
14-
className="border-skin-base flex w-full items-center gap-3 rounded-2xl border p-3"
14+
className="bg-skin-base border-skin-base flex w-full items-center gap-3 rounded-2xl border p-3"
1515
>
1616
<span className="text-skin-base w-fit shrink-0">Add link card:</span>
1717
<span className="text-skin-link-base line-clamp-1 shrink overflow-ellipsis break-all text-sm">

src/components/inputs/editor/QuotePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function QuoteToPreview(props: Props) {
2424
return (
2525
<article
2626
onClick={toggleShowMore}
27-
className="border-skin-base flex cursor-pointer items-start gap-1 rounded-2xl border p-2"
27+
className="bg-skin-base border-skin-base flex cursor-pointer items-start gap-1 rounded-2xl border p-2"
2828
>
2929
<Image
3030
src={

0 commit comments

Comments
 (0)