Skip to content

Commit

Permalink
🎨 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyu-dev authored Jan 10, 2024
2 parents c9024c1 + e38aca9 commit 3d17bcf
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/templates/HomeTemplate/Styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Wrap = styled.div`
export const Head = styled.section`
position: relative;
width: 100%;
flex: 0 0 95px;
flex: 0 0 85px;
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const WeekTemplate = memo(() => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 307;
return scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const MyEncyclopediaTemplate = () => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 30;
const height = scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const MyLibraryTemplate = () => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 30;
return scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const MyMenu = () => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 95;
const height = scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const MyRestoreTemplate = () => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 30;
return scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const SearchMain = () => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 20 + 66 + 18 + 23 + 18;
return scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const SearchResult = memo(() => {
const listHeight = useMemo(() => {
const doc = document.querySelector('#root') as HTMLElement;
const scrollHeight = doc.scrollHeight;
const headerHeight = 95;
const headerHeight = 85;
const footerHeight = 70;
const bodyHeight = 20 + 30 + 20;
return scrollHeight - (headerHeight + footerHeight + bodyHeight);
Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/SearchTemplate/Styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Wrap = styled.form`
export const Head = styled.section`
position: relative;
width: 100%;
flex: 0 0 95px;
flex: 0 0 85px;
padding: 0 13px;
display: flex;
Expand Down
5 changes: 3 additions & 2 deletions src/utils/Alert/Alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ const input: TSwal = (args) => {
inputAttributes: {
autocapitalize: 'off'
},
showCancelButton: true,
confirmButtonText: '확인',
cancelButtonText: '취소',
confirmButtonText: '확인',
showCancelButton: true,
showLoaderOnConfirm: true,
reverseButtons: true,
allowOutsideClick: () => !Swal.isLoading(),
...args
});
Expand Down

0 comments on commit 3d17bcf

Please sign in to comment.