Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-scorecard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Venkaiah Naidu Singamchetty
nisum-scorecard
Commits
7b657fe2
Commit
7b657fe2
authored
Mar 22, 2024
by
Shiva Komirishetti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
max height changes
parent
28d6db83
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
index.jsx
src/components/accordion/index.jsx
+1
-1
index.jsx
src/components/header/index.jsx
+1
-1
index.jsx
src/components/sidebar/index.jsx
+3
-3
index.css
src/index.css
+0
-3
index.jsx
src/pages/layout/index.jsx
+6
-3
No files found.
src/components/accordion/index.jsx
View file @
7b657fe2
...
...
@@ -46,7 +46,7 @@ function Accordion({ title, data ,handleAddActivity,open,handleAccordian}) {
{
title
:
"Score"
,
id
:
"score"
,
render
:
(
value
)
=>
<
div
className=
"w-[35px] px-3 bg-blue-400 rounded-full text-white font-bold text-center p-[4px]"
>
{
value
}
</
div
>
},
{
title
:
"Comments"
,
id
:
"comments"
,
render
:(
value
)
=>
<
span
className=
"listData"
title=
{
value
}
>
{
value
}
</
span
>},
];
if
(
loading
&&
title
==
"Duties"
)
return
<
Loading
/>
if
(
!
loading
){
...
...
src/components/header/index.jsx
View file @
7b657fe2
...
...
@@ -37,7 +37,7 @@ function Header({ isOpen }) {
},
[]);
return
(
<
div
className=
"flex items-center justify-between py-5 px-10"
>
<
div
className=
"flex items-center justify-between py-5 px-10
fixed bg-white w-full
"
>
<
Link
to=
{
"/dashboard"
}
><
img
src=
"/logo.png"
/></
Link
>
<
div
className=
"flex items-center relative"
>
<
button
ref=
{
logoutRef
}
className=
" -mt-1 text-2xl flex"
onClick=
{
()
=>
setOpen
(
!
open
)
}
>
...
...
src/components/sidebar/index.jsx
View file @
7b657fe2
import
React
from
"react"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
useSelector
}
from
"react-redux"
;
import
SetWindowSize
from
'../../utils/SetWindowSize'
;
function
Sidebar
()
{
const
user
=
useSelector
((
state
)
=>
state
.
userDetails
.
user
);
const
[
windowWidth
,
windowHeight
]
=
SetWindowSize
(
);
return
(
<
div
className=
"w-[20%] flex items-center flex-col
"
>
<
div
className=
"w-[20%] flex items-center flex-col
overflow-auto"
style=
{
{
height
:
`calc(${windowHeight}px - 87px)`
}
}
>
<
nav
className=
"hs-accordion-group p-6 w-full flex flex-col flex-wrap"
data
-
hs
-
accordion
-
always
-
open
...
...
src/index.css
View file @
7b657fe2
...
...
@@ -23,6 +23,3 @@ code {
display
:
inline-block
;
}
.childDiv
{
max-height
:
calc
(
100vh
-
85px
);
}
src/pages/layout/index.jsx
View file @
7b657fe2
...
...
@@ -2,9 +2,12 @@ import React, { useState } from 'react'
import
Header
from
'../../components/header'
;
import
Sidebar
from
'../../components/sidebar'
;
import
LeftSidebar
from
'../../components/leftSidebar'
;
import
SetWindowSize
from
'../../utils/SetWindowSize'
;
function
Layout
({
children
})
{
const
[
isOpen
,
setIsOpen
]
=
useState
(
false
)
const
[
isOpen
,
setIsOpen
]
=
useState
(
false
);
const
[
windowWidth
,
windowHeight
]
=
SetWindowSize
();
const
handleLogoutOpen
=
()
=>
{
setIsOpen
(
false
)
}
...
...
@@ -12,9 +15,9 @@ function Layout({children}) {
return
(
<
div
className=
'max-h-[84vh]'
onClick=
{
handleLogoutOpen
}
>
<
Header
isOpen=
{
isOpen
}
/>
<
div
className=
"flex"
>
<
div
className=
"flex
pt-[85px]
"
>
<
Sidebar
/>
<
div
className=
"bg-[#E9EDEE] w-full
"
style=
{
{
height
:
"88vh"
}
}
>
<
div
className=
"bg-[#E9EDEE] w-full
overflow-auto"
style=
{
{
height
:
`calc(${windowHeight}px - 87px)`
}
}
>
{
children
}
</
div
>
{
url
.
includes
(
'/viewreportee'
)
&&
<
LeftSidebar
/>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment