new note btn circular

This commit is contained in:
Martti Malmi 2023-11-28 11:21:52 +02:00
parent d41e7e5ce0
commit d28f287173
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { FormattedMessage, useIntl } from "react-intl";
import { removeUndefined, unwrap } from "@snort/shared";
import { unwrap } from "@snort/shared";
import { NostrEvent, OkResponse } from "@snort/system";
import AsyncButton from "@/Element/AsyncButton";

View File

@ -60,7 +60,11 @@ export const NoteCreatorButton = ({
{!shouldHideNoteCreator && (
<button
ref={buttonRef}
className={classNames("flex flex-row items-center primary rounded-full", { circle: !showText }, className)}
className={classNames(
"aspect-square flex flex-row items-center primary rounded-full",
{ "xl:aspect-auto": showText },
className,
)}
onClick={() =>
update(v => {
v.replyTo = undefined;