mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
refactor(FE-438): Make filter modal and controls responsive
This commit is contained in:
@@ -884,7 +884,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
{/* Filter Modal */}
|
{/* Filter Modal */}
|
||||||
<Modal
|
<Modal
|
||||||
ref={filterModal.ref}
|
ref={filterModal.ref}
|
||||||
className={{ modalBox: 'rounded-2xl max-w-5/12' }}
|
className={{ modalBox: 'rounded-2xl xl:max-w-4/12 max-w-sm' }}
|
||||||
>
|
>
|
||||||
<div className='flex flex-col gap-2'>
|
<div className='flex flex-col gap-2'>
|
||||||
<div className='flex items-center justify-between'>
|
<div className='flex items-center justify-between'>
|
||||||
@@ -908,7 +908,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
<div className='divider my-0'></div>
|
<div className='divider my-0'></div>
|
||||||
|
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
<div className='grid grid-cols-1 sm:grid-cols-2 gap-4'>
|
<div className='grid grid-cols-1 sm:grid-cols-2 sm:gap-4'>
|
||||||
<DateInput
|
<DateInput
|
||||||
label='Tanggal'
|
label='Tanggal'
|
||||||
name='start_date'
|
name='start_date'
|
||||||
@@ -965,17 +965,17 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
|
|
||||||
<div className='divider my-0'></div>
|
<div className='divider my-0'></div>
|
||||||
|
|
||||||
<div className='flex justify-between gap-2 [&_button]:px-20'>
|
<div className='xl:flex xl:flex-row xl:justify-between gap-2 [&_button]:px-10 grid grid-cols-1'>
|
||||||
<Button
|
<Button
|
||||||
variant='ghost'
|
variant='ghost'
|
||||||
className='max-w-max'
|
className='w-full xl:max-w-max'
|
||||||
onClick={handleResetFilters}
|
onClick={handleResetFilters}
|
||||||
>
|
>
|
||||||
Reset Filter
|
Reset Filter
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
color='primary'
|
color='primary'
|
||||||
className='max-w-max'
|
className='w-full xl:max-w-max'
|
||||||
onClick={handleApplyFilters}
|
onClick={handleApplyFilters}
|
||||||
>
|
>
|
||||||
Apply Filter
|
Apply Filter
|
||||||
|
|||||||
Reference in New Issue
Block a user