min-height for quote & spinner
This commit is contained in:
@ -1,10 +1,3 @@
|
|||||||
.note {
|
|
||||||
min-height: 110px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.note > .header .reply {
|
.note > .header .reply {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: var(--font-secondary-color);
|
color: var(--font-secondary-color);
|
||||||
|
@ -33,7 +33,7 @@ const TEXT_TRUNCATE_LENGTH = 400;
|
|||||||
export function NoteInner(props: NoteProps) {
|
export function NoteInner(props: NoteProps) {
|
||||||
const { data: ev, related, highlight, options: opt, ignoreModeration = false, className } = props;
|
const { data: ev, related, highlight, options: opt, ignoreModeration = false, className } = props;
|
||||||
|
|
||||||
const baseClassName = classNames("note card", className);
|
const baseClassName = classNames("note min-h-[110px] flex flex-col gap-4 card", className);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [showReactions, setShowReactions] = useState(false);
|
const [showReactions, setShowReactions] = useState(false);
|
||||||
|
|
||||||
|
@ -6,7 +6,12 @@ import PageSpinner from "@/Element/PageSpinner";
|
|||||||
|
|
||||||
export default function NoteQuote({ link, depth }: { link: NostrLink; depth?: number }) {
|
export default function NoteQuote({ link, depth }: { link: NostrLink; depth?: number }) {
|
||||||
const ev = useEventFeed(link);
|
const ev = useEventFeed(link);
|
||||||
if (!ev.data) return <PageSpinner />;
|
if (!ev.data)
|
||||||
|
return (
|
||||||
|
<div className="note-quote flex items-center justify-center h-[110px]">
|
||||||
|
<PageSpinner />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
return (
|
return (
|
||||||
<Note
|
<Note
|
||||||
data={ev.data}
|
data={ev.data}
|
||||||
|
@ -210,7 +210,6 @@ a.ext {
|
|||||||
.card .card {
|
.card .card {
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
min-height: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card .header {
|
.card .header {
|
||||||
|
Reference in New Issue
Block a user