功能:优化创作页移动端适配
This commit is contained in:
@@ -14,8 +14,8 @@ export default ({ value, children, className }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Card className={`${titleSty} px-4 mb-2 ${className}`}>
|
<Card className={`${titleSty} px-4 mb-2 ${className}`}>
|
||||||
<div className="flex justify-between items-center h-14">
|
<div className="overflow-auto flex justify-between items-center h-14">
|
||||||
<h2 className="font-semibold text-black dark:text-white text-xl">{value}</h2>
|
<h2 className="font-semibold text-black dark:text-white text-xl min-w-24">{value}</h2>
|
||||||
|
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ const CreatePage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Title value="创作">
|
<Title value="创作">
|
||||||
<div className='flex items-center space-x-4'>
|
<div className='flex items-center space-x-4 w-[360px]'>
|
||||||
<Dropdown.Button menu={{ items }}>
|
<Dropdown.Button menu={{ items }}>
|
||||||
<AiOutlineEdit className='text-base' /> 创作神器
|
<AiOutlineEdit className='text-base' /> 创作神器
|
||||||
</Dropdown.Button>
|
</Dropdown.Button>
|
||||||
@@ -183,7 +183,6 @@ const CreatePage = () => {
|
|||||||
title={id ? "编辑文章" : "发布文章"}
|
title={id ? "编辑文章" : "发布文章"}
|
||||||
placement="right"
|
placement="right"
|
||||||
size='large'
|
size='large'
|
||||||
closable={false}
|
|
||||||
onClose={() => setPublishOpen(false)}
|
onClose={() => setPublishOpen(false)}
|
||||||
open={publishOpen}
|
open={publishOpen}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -144,7 +144,6 @@ export default () => {
|
|||||||
width={600}
|
width={600}
|
||||||
title="图片信息"
|
title="图片信息"
|
||||||
placement="right"
|
placement="right"
|
||||||
closable={false}
|
|
||||||
open={openFileInfoDrawer}
|
open={openFileInfoDrawer}
|
||||||
onClose={() => { setOpenFileInfoDrawer(false); setFile({} as File) }}
|
onClose={() => { setOpenFileInfoDrawer(false); setFile({} as File) }}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user