@daeryun/dr_components 0.7.22 → 0.7.23

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.
@@ -25,7 +25,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
25
25
  value: '1'
26
26
  });
27
27
  };
28
- return (<>
28
+ return linkList.length > 0 ? (<>
29
29
  <div className={'flex items-center gap-[14px] border-[1px] border-solid border-[#D0D0D0] pr-[30px] ' +
30
30
  //640px
31
31
  'max-sm:gap-[14px] ' +
@@ -69,17 +69,15 @@ const SeoAdditionalLink = ({ type, linkList }) => {
69
69
  {linkList
70
70
  .filter(l => l.title.length > 0)
71
71
  .map(linkData => (<li key={linkData.title + linkData.idx}>
72
- <Link href={linkData.link} target={type == 'shorts' ? '_blank' : '_self'} className={'relative flex w-fit items-center gap-[16px] font-[600] ' +
73
- //640px
74
- 'max-sm:gap-[8px] '} onClick={() => {
72
+ <Link href={linkData.link} target={type == 'shorts' ? '_blank' : '_self'} className={'relative flex w-fit items-center gap-[8px] font-[600] '} onClick={() => {
75
73
  if (type === '참고')
76
74
  referClick();
77
75
  else
78
76
  newsClick();
79
77
  }}>
80
- <Image src={IconLinkArrow} alt={''} width={8} height={14} className={'relative h-[14px] w-[8px] object-contain ' +
78
+ <Image src={IconLinkArrow} alt={''} width={8} height={14} className={'relative mr-2 h-[14px] w-[8px] object-contain ' +
81
79
  //640px
82
- 'max-sm:w-[6px] '}/>
80
+ 'max-sm:mr-0 max-sm:w-[6px]'}/>
83
81
  <p className={'line-clamp-1 flex items-center leading-[1.25] max-md:line-clamp-none'}>
84
82
  {linkData.title}
85
83
  </p>
@@ -96,6 +94,6 @@ const SeoAdditionalLink = ({ type, linkList }) => {
96
94
  </li>))}
97
95
  </ul>
98
96
  </div>
99
- </>);
97
+ </>) : (<></>);
100
98
  };
101
99
  export default SeoAdditionalLink;
@@ -30,7 +30,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
30
30
  });
31
31
  };
32
32
 
33
- return (
33
+ return linkList.length > 0 ? (
34
34
  <>
35
35
  <div
36
36
  className={
@@ -103,11 +103,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
103
103
  <Link
104
104
  href={linkData.link}
105
105
  target={type == 'shorts' ? '_blank' : '_self'}
106
- className={
107
- 'relative flex w-fit items-center gap-[16px] font-[600] ' +
108
- //640px
109
- 'max-sm:gap-[8px] '
110
- }
106
+ className={'relative flex w-fit items-center gap-[8px] font-[600] '}
111
107
  onClick={() => {
112
108
  if (type === '참고') referClick();
113
109
  else newsClick();
@@ -119,9 +115,9 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
119
115
  width={8}
120
116
  height={14}
121
117
  className={
122
- 'relative h-[14px] w-[8px] object-contain ' +
118
+ 'relative mr-2 h-[14px] w-[8px] object-contain ' +
123
119
  //640px
124
- 'max-sm:w-[6px] '
120
+ 'max-sm:mr-0 max-sm:w-[6px]'
125
121
  }
126
122
  />
127
123
  <p
@@ -162,6 +158,8 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
162
158
  </ul>
163
159
  </div>
164
160
  </>
161
+ ) : (
162
+ <></>
165
163
  );
166
164
  };
167
165
 
@@ -28,7 +28,7 @@ const SeoYoutube = ({ linkList }) => {
28
28
  var _a;
29
29
  (_a = popOffBtnRef.current) === null || _a === void 0 ? void 0 : _a.focus();
30
30
  }, [isYoutubeOn]);
31
- return (<>
31
+ return linkList.length > 0 ? (<>
32
32
  <section className={'mt-8 flex justify-between gap-[36px] border-b border-solid border-[#DBDBDB] pb-[60px] tracking-[-1.92px] ' +
33
33
  //1500px
34
34
  'max-3xl:gap-[24px] ' +
@@ -64,6 +64,6 @@ const SeoYoutube = ({ linkList }) => {
64
64
  </ol>
65
65
  <YoutubeModal onClick={handleClickUpYoutube} isYoutubeOn={isYoutubeOn} youtubeId={youtubeId} popOffBtnRef={popOffBtnRef}/>
66
66
  </section>
67
- </>);
67
+ </>) : (<></>);
68
68
  };
69
69
  export default SeoYoutube;
@@ -35,7 +35,7 @@ const SeoYoutube = ({ linkList }: { linkList: IAddLinkTypes[] }) => {
35
35
  popOffBtnRef.current?.focus();
36
36
  }, [isYoutubeOn]);
37
37
 
38
- return (
38
+ return linkList.length > 0 ? (
39
39
  <>
40
40
  <section
41
41
  className={
@@ -98,6 +98,8 @@ const SeoYoutube = ({ linkList }: { linkList: IAddLinkTypes[] }) => {
98
98
  />
99
99
  </section>
100
100
  </>
101
+ ) : (
102
+ <></>
101
103
  );
102
104
  };
103
105
  export default SeoYoutube;
@@ -11450,6 +11450,10 @@ body {
11450
11450
  margin-left: 26px;
11451
11451
  }
11452
11452
 
11453
+ .max-sm\:mr-0 {
11454
+ margin-right: 0px;
11455
+ }
11456
+
11453
11457
  .max-sm\:mt-10 {
11454
11458
  margin-top: 2.5rem;
11455
11459
  }