Skip to content

Commit

Permalink
style. header height 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyu-dev committed Jan 9, 2024
1 parent 6e245b4 commit e38aca9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 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

0 comments on commit e38aca9

Please sign in to comment.