@daeryun/dr_components 0.7.22 → 0.7.24

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] ' +
@@ -40,7 +40,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
40
40
  'max-sm:h-[38px] max-sm:w-[110px] ' +
41
41
  //520px
42
42
  'max-2sm:h-[33px] max-2sm:w-[100px] '} style={{ paddingLeft: '15px' }}>
43
- <Image src={IconYoutube} alt="" className={'h-6 w-[105px]'} width={210} height={48}/>
43
+ <Image src={IconYoutube} alt="" className={'h-6 w-[105px] object-contain'} width={210} height={48}/>
44
44
  </span>) : (<span className={'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
45
45
  //1500px
46
46
  'max-3xl:h-[42px] max-3xl:w-[120px] ' +
@@ -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={
@@ -55,7 +55,13 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
55
55
  }
56
56
  style={{ paddingLeft: '15px' }}
57
57
  >
58
- <Image src={IconYoutube} alt="" className={'h-6 w-[105px]'} width={210} height={48} />
58
+ <Image
59
+ src={IconYoutube}
60
+ alt=""
61
+ className={'h-6 w-[105px] object-contain'}
62
+ width={210}
63
+ height={48}
64
+ />
59
65
  </span>
60
66
  ) : (
61
67
  <span
@@ -103,11 +109,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
103
109
  <Link
104
110
  href={linkData.link}
105
111
  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
- }
112
+ className={'relative flex w-fit items-center gap-[8px] font-[600] '}
111
113
  onClick={() => {
112
114
  if (type === '참고') referClick();
113
115
  else newsClick();
@@ -119,9 +121,9 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
119
121
  width={8}
120
122
  height={14}
121
123
  className={
122
- 'relative h-[14px] w-[8px] object-contain ' +
124
+ 'relative mr-2 h-[14px] w-[8px] object-contain ' +
123
125
  //640px
124
- 'max-sm:w-[6px] '
126
+ 'max-sm:mr-0 max-sm:w-[6px]'
125
127
  }
126
128
  />
127
129
  <p
@@ -162,6 +164,8 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
162
164
  </ul>
163
165
  </div>
164
166
  </>
167
+ ) : (
168
+ <></>
165
169
  );
166
170
  };
167
171
 
@@ -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
  }