@daeryun/dr_components 1.1.44 → 1.1.46

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.
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
3
  import { useRouter } from 'next/router';
4
- import classNames from 'classnames';
5
4
  import { PageWrapper, PdfPrintCopyLink } from '../../../index';
6
5
  import PostNavigation from '../../../postNavigation/PostNavigation';
7
6
  import TuiViewer from '../../../TuiViewer/TuiViewer';
@@ -49,14 +48,11 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
49
48
  </div>
50
49
 
51
50
  <div className={styles.boxBody}>
52
- <div className={classNames({
53
- [styles.summary]: true,
54
- [styles.introduction]: true
55
- })}>
51
+ <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
56
52
  {fileList.map((file, index) => (<div key={index} style={{ marginBottom: '50px' }}>
57
53
  <img src={imagePath + file.file_path + '/' + file.save_file_name} className={styles.summaryImg} alt={file.file_alt}/>
58
54
  </div>))}
59
- {notice.gubun === 'ck' ? (<div id={'ck-content'} dangerouslySetInnerHTML={{
55
+ {notice.gubun === 'ck' ? (<div id={'ck-content'} className="py-[30px]" dangerouslySetInnerHTML={{
60
56
  __html: htmlUrlDecode(notice.contents.replace('../../UploadFile', '/SE2/upload'))
61
57
  }}/>) : (<TuiViewer initialValue={notice.contents.replace('../../UploadFile', '/SE2/upload')}/>)}
62
58
  </div>
@@ -89,12 +89,7 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
89
89
  </div>
90
90
 
91
91
  <div className={styles.boxBody}>
92
- <div
93
- className={classNames({
94
- [styles.summary]: true,
95
- [styles.introduction]: true
96
- })}
97
- >
92
+ <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
98
93
  {fileList.map((file: FileData, index: number) => (
99
94
  <div key={index} style={{ marginBottom: '50px' }}>
100
95
  <img
@@ -107,6 +102,7 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
107
102
  {notice.gubun === 'ck' ? (
108
103
  <div
109
104
  id={'ck-content'}
105
+ className="py-[30px]"
110
106
  dangerouslySetInnerHTML={{
111
107
  __html: htmlUrlDecode(notice.contents.replace('../../UploadFile', '/SE2/upload'))
112
108
  }}
@@ -42,8 +42,8 @@ export const Lawyer = ({ lawyerData }) => {
42
42
  <span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
43
43
  <span className={'relative flex w-full flex-col gap-[5px]'}>
44
44
  <meta itemProp="name" content={`${i.lawyer_name} 변호사`}/>
45
- <p className={'pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
46
- {i.lawyer_name.include('(')
45
+ <p className={'line-clamp-2 pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
46
+ {i.lawyer_name.includes('(')
47
47
  ? i.lawyer_name.split('(')[1].replace(')', '')
48
48
  : i.lawyer_name}
49
49
  </p>
@@ -94,10 +94,10 @@ export const Lawyer = ({ lawyerData }: { lawyerData: any[] }) => {
94
94
  <meta itemProp="name" content={`${i.lawyer_name} 변호사`} />
95
95
  <p
96
96
  className={
97
- 'pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'
97
+ 'line-clamp-2 pr-[35px] text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'
98
98
  }
99
99
  >
100
- {i.lawyer_name.include('(')
100
+ {i.lawyer_name.includes('(')
101
101
  ? i.lawyer_name.split('(')[1].replace(')', '')
102
102
  : i.lawyer_name}
103
103
  </p>