Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
parent
e61415223b
commit
7709d9df20
1435 changed files with 13372 additions and 11612 deletions
|
|
@ -11,14 +11,14 @@ const Header: FC<YearAndMonthPickerHeaderProps> = ({
|
|||
const months = useMonths()
|
||||
|
||||
return (
|
||||
<div className='flex p-2 pb-1 border-b-[0.5px] border-divider-regular'>
|
||||
<div className='flex border-b-[0.5px] border-divider-regular p-2 pb-1'>
|
||||
{/* Year and Month */}
|
||||
<button
|
||||
onClick={onClick}
|
||||
className='flex items-center gap-x-0.5 px-2 py-1.5 rounded-lg hover:bg-state-base-hover text-text-primary system-md-semibold'
|
||||
className='system-md-semibold flex items-center gap-x-0.5 rounded-lg px-2 py-1.5 text-text-primary hover:bg-state-base-hover'
|
||||
>
|
||||
<span>{`${months[selectedMonth]} ${selectedYear}`}</span>
|
||||
<RiArrowUpSLine className='w-4 h-4 text-text-tertiary' />
|
||||
<RiArrowUpSLine className='h-4 w-4 text-text-tertiary' />
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const Options: FC<YearAndMonthPickerOptionsProps> = ({
|
|||
return (
|
||||
<div className='grid grid-cols-2 gap-x-1 p-2'>
|
||||
{/* Month Picker */}
|
||||
<ul className='flex flex-col gap-y-0.5 h-[208px] overflow-y-auto no-scrollbar pb-[184px]'>
|
||||
<ul className='no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]'>
|
||||
{
|
||||
months.map((month, index) => {
|
||||
const isSelected = selectedMonth === index
|
||||
|
|
@ -32,7 +32,7 @@ const Options: FC<YearAndMonthPickerOptionsProps> = ({
|
|||
}
|
||||
</ul>
|
||||
{/* Year Picker */}
|
||||
<ul className='flex flex-col gap-y-0.5 h-[208px] overflow-y-auto no-scrollbar pb-[184px]'>
|
||||
<ul className='no-scrollbar flex h-[208px] flex-col gap-y-0.5 overflow-y-auto pb-[184px]'>
|
||||
{
|
||||
yearOptions.map((year) => {
|
||||
const isSelected = selectedYear === year
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue