chore: tweak editor border styles

This commit is contained in:
Steven
2023-12-15 21:35:31 +08:00
parent e4070f7753
commit a9812592fe
4 changed files with 13 additions and 4 deletions

View File

@ -425,7 +425,7 @@ const MemoEditor = (props: Props) => {
<div <div
className={`${ className={`${
className ?? "" className ?? ""
} relative w-full flex flex-col justify-start items-start bg-white dark:bg-zinc-700 px-4 pt-4 rounded-lg border-2 border-gray-200 dark:border-zinc-600`} } relative w-full flex flex-col justify-start items-start bg-white dark:bg-zinc-700 px-4 pt-4 rounded-lg border border-gray-200 dark:border-zinc-600`}
tabIndex={0} tabIndex={0}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
onDrop={handleDropEvent} onDrop={handleDropEvent}

View File

@ -353,10 +353,20 @@ const SystemSection = () => {
fontFamily: "monospace", fontFamily: "monospace",
fontSize: "14px", fontSize: "14px",
}} }}
placeholder={"Your instance url, should be started with http:// or https://"} placeholder={"Should be started with http:// or https://"}
value={instanceUrl} value={instanceUrl}
onChange={(event) => handleInstanceUrlChanged(event.target.value)} onChange={(event) => handleInstanceUrlChanged(event.target.value)}
/> />
<div className="w-full">
<Link
className="text-gray-500 text-sm inline-flex flex-row justify-start items-center mt-2 hover:underline hover:text-blue-600"
to="https://usememos.com/docs/advanced-settings/seo"
target="_blank"
>
{t("common.learn-more")}
<Icon.ExternalLink className="inline w-4 h-auto ml-1" />
</Link>
</div>
<Divider className="!mt-3 !my-4" /> <Divider className="!mt-3 !my-4" />
<div className="form-label"> <div className="form-label">
<div className="flex flex-row items-center"> <div className="flex flex-row items-center">

View File

@ -128,7 +128,7 @@ const DailyReview = () => {
{selectedDateStamp === currentDateStamp && ( {selectedDateStamp === currentDateStamp && (
<div className="w-full pl-0 sm:pl-12 sm:mt-4"> <div className="w-full pl-0 sm:pl-12 sm:mt-4">
<MemoEditor className="!border" cacheKey="daily-review-editor" /> <MemoEditor cacheKey="daily-review-editor" />
</div> </div>
)} )}
</div> </div>

View File

@ -219,7 +219,6 @@ const MemoDetail = () => {
{currentUser && ( {currentUser && (
<MemoEditor <MemoEditor
key={memo.id} key={memo.id}
className="!border"
cacheKey={`comment-editor-${memo.id}`} cacheKey={`comment-editor-${memo.id}`}
relationList={[{ memoId: UNKNOWN_ID, relatedMemoId: memo.id, type: "COMMENT" }]} relationList={[{ memoId: UNKNOWN_ID, relatedMemoId: memo.id, type: "COMMENT" }]}
onConfirm={handleCommentCreated} onConfirm={handleCommentCreated}