fix: dashboard mobile style
This commit is contained in:
@@ -510,6 +510,8 @@ export default function PostEditor() {
|
||||
initialContent={initialContent}
|
||||
onChange={onChange}
|
||||
onCreateEditor={onCreateEditor}
|
||||
isRendering={isRendering}
|
||||
setIsRendering={setIsRendering}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -397,11 +397,11 @@ export default function DashboardLayout({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="sm:p-3 w-full h-full">
|
||||
<div className="lg:p-3 w-full h-full">
|
||||
<div
|
||||
className={cn(
|
||||
`${isMobileLayout ? "pt-16 flex-1" : "flex-1 min-w-0"}`,
|
||||
"bg-white w-full h-full sm:rounded-xl sm:drop-shadow overflow-y-auto",
|
||||
"bg-white w-full h-full lg:rounded-xl lg:drop-shadow overflow-y-auto",
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -41,13 +41,16 @@ export default function DualColumnEditor({
|
||||
initialContent,
|
||||
onChange,
|
||||
onCreateEditor,
|
||||
isRendering,
|
||||
setIsRendering,
|
||||
}: {
|
||||
initialContent: string
|
||||
onChange: (value: string) => void
|
||||
onCreateEditor: (view: EditorView) => void
|
||||
isRendering: boolean
|
||||
setIsRendering: (value: boolean) => void
|
||||
}) {
|
||||
const isMobileLayout = useIsMobileLayout()
|
||||
const [isRendering, setIsRendering] = useState(!isMobileLayout)
|
||||
const { t } = useTranslation("dashboard")
|
||||
const uploadFile = useUploadFile()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user