mirror of
https://github.com/usememos/memos.git
synced 2026-12-03 09:19:13 +01:00
chore: update memo content styles
This commit is contained in:
@@ -3,7 +3,7 @@ interface Props {
|
||||
}
|
||||
|
||||
const Code: React.FC<Props> = ({ content }: Props) => {
|
||||
return <code className="inline break-all px-1 rounded bg-gray-100 dark:bg-zinc-700">{content}</code>;
|
||||
return <code className="inline break-all px-1 font-mono rounded bg-gray-100 dark:bg-zinc-700">{content}</code>;
|
||||
};
|
||||
|
||||
export default Code;
|
||||
|
||||
@@ -76,13 +76,13 @@ const MemoView: React.FC<Props> = (props: Props) => {
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
"group relative flex flex-col justify-start items-start w-full px-4 pt-4 pb-3 mb-2 gap-2 bg-white dark:bg-zinc-800 rounded-lg border border-white dark:border-zinc-800 hover:border-gray-200 dark:hover:border-zinc-700",
|
||||
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 bg-white dark:bg-zinc-800 rounded-lg border border-white dark:border-zinc-800 hover:border-gray-200 dark:hover:border-zinc-700",
|
||||
memo.pinned && props.showPinned && "border-gray-200 border dark:border-zinc-700",
|
||||
className,
|
||||
)}
|
||||
ref={memoContainerRef}
|
||||
>
|
||||
<div className="w-full h-7 flex flex-row justify-between items-center gap-2">
|
||||
<div className="w-full flex flex-row justify-between items-center gap-2">
|
||||
<div className="w-auto max-w-[calc(100%-8rem)] grow flex flex-row justify-start items-center">
|
||||
{creator && (
|
||||
<div className="w-full flex flex-row justify-start items-center">
|
||||
|
||||
Reference in New Issue
Block a user