功能:优化创作页移动端适配

This commit is contained in:
Liu 宇阳
2024-11-12 13:29:52 +08:00
parent 76ae8b427d
commit 14a078dc4f
3 changed files with 3 additions and 5 deletions

View File

@@ -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>

View File

@@ -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}
> >

View File

@@ -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) }}
> >