@daeryun/dr_components 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ const MenuTab = ({ search, searchDoneRef, setChoiceTabValue, totalCount, count }
14
14
  }, [searchParams]);
15
15
  return (<div className={'mb-[106px] mt-20 grid h-full w-full grid-cols-8 max-xl:grid-cols-4 max-lg:my-[60px] max-[850px]:grid-cols-2 max-sm:my-10 '}>
16
16
  {[{ tab: '전체', etab: 'All', value: '전체' }, ...tabTypes].map(item => {
17
- return (<Link ref={searchDoneRef} href={`/integrate?search=${querySearch}&tab=${item.value}`} key={item.value} className={'flex h-[62px] w-full items-center justify-center text-[19px] leading-none tracking-[-0.7px] ' +
17
+ return (<Link ref={searchDoneRef} href={`/integrate?search=${querySearch}&tab=${item.value}`} key={item.value} className={'flex h-[62px] w-full flex-col items-center justify-center text-[19px] leading-none tracking-[-0.7px] ' +
18
18
  'max-3xl:text-[18px] ' +
19
19
  'max-xl:flex-row max-xl:gap-1 ' +
20
20
  'max-[850px]:h-[50px] ' +
@@ -23,12 +23,15 @@ const MenuTab = ({ search, searchDoneRef, setChoiceTabValue, totalCount, count }
23
23
  (tab === item.value
24
24
  ? 'bg-[#29579C] font-[800] text-[#FFFFFF] '
25
25
  : 'border border-solid border-[#E9E9E9] bg-[#F7F7F7] font-[500] text-[#949494] ')}>
26
- {item.tab} (
27
- {item.value != '전체'
26
+ {item.tab} <br className={'max-xl:hidden'}/>{' '}
27
+ <span className={'xl:pt-1'}>
28
+ (
29
+ {item.value != '전체'
28
30
  ? //@ts-ignore
29
31
  count[String(item.value)].toLocaleString()
30
32
  : totalCount.toLocaleString()}
31
- )
33
+ ){' '}
34
+ </span>
32
35
  </Link>);
33
36
  })}
34
37
  </div>);
@@ -46,7 +46,7 @@ const MenuTab = ({ search, searchDoneRef, setChoiceTabValue, totalCount, count }
46
46
  href={`/integrate?search=${querySearch}&tab=${item.value}`}
47
47
  key={item.value}
48
48
  className={
49
- 'flex h-[62px] w-full items-center justify-center text-[19px] leading-none tracking-[-0.7px] ' +
49
+ 'flex h-[62px] w-full flex-col items-center justify-center text-[19px] leading-none tracking-[-0.7px] ' +
50
50
  'max-3xl:text-[18px] ' +
51
51
  'max-xl:flex-row max-xl:gap-1 ' +
52
52
  'max-[850px]:h-[50px] ' +
@@ -57,12 +57,15 @@ const MenuTab = ({ search, searchDoneRef, setChoiceTabValue, totalCount, count }
57
57
  : 'border border-solid border-[#E9E9E9] bg-[#F7F7F7] font-[500] text-[#949494] ')
58
58
  }
59
59
  >
60
- {item.tab} (
61
- {item.value != '전체'
62
- ? //@ts-ignore
63
- count[String(item.value)].toLocaleString()
64
- : totalCount.toLocaleString()}
65
- )
60
+ {item.tab} <br className={'max-xl:hidden'} />{' '}
61
+ <span className={'xl:pt-1'}>
62
+ (
63
+ {item.value != '전체'
64
+ ? //@ts-ignore
65
+ count[String(item.value)].toLocaleString()
66
+ : totalCount.toLocaleString()}
67
+ ){' '}
68
+ </span>
66
69
  </Link>
67
70
  );
68
71
  })}
@@ -38,7 +38,7 @@ const Trend = (props) => {
38
38
  return (<>
39
39
  {tab === '전체' || tab === 'trend' ? (tab === 'trend' && listCount.trend < 1 ? (<NoResult />) : (<>
40
40
  {listCount.trend > 0 ? (<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
41
- <Title title={'판결분석'} tab={tab} type={'trend'} onClick={str => onMoreViewText(str)} count={listCount.trend}/>
41
+ <Title title={'판결분석/최신동향'} tab={tab} type={'trend'} onClick={str => onMoreViewText(str)} count={listCount.trend}/>
42
42
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
43
43
  {(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
44
44
  const title = item.title.split('|');
@@ -72,7 +72,7 @@ const Trend = (props: {
72
72
  {listCount.trend > 0 ? (
73
73
  <div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
74
74
  <Title
75
- title={'판결분석'}
75
+ title={'판결분석/최신동향'}
76
76
  tab={tab}
77
77
  type={'trend'}
78
78
  onClick={str => onMoreViewText(str)}
@@ -22897,6 +22897,10 @@ body {
22897
22897
  padding-right: 20px;
22898
22898
  }
22899
22899
 
22900
+ .xl\:pt-1 {
22901
+ padding-top: 0.25rem;
22902
+ }
22903
+
22900
22904
  .xl\:text-\[15px\] {
22901
22905
  font-size: 15px;
22902
22906
  }