Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Innoveria Bachelor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Høyland
Innoveria Bachelor
Commits
4a017dff
Commit
4a017dff
authored
1 year ago
by
Martyna Maria Juga
Browse files
Options
Downloads
Patches
Plain Diff
Added handle to resizable and some minor adjustments
parent
d6bb0e85
No related branches found
No related tags found
2 merge requests
!89
Dev branch
,
!88
Sysadmin
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Frontend/power-tracker/src/components/manageGateway.tsx
+8
-5
8 additions, 5 deletions
Frontend/power-tracker/src/components/manageGateway.tsx
with
8 additions
and
5 deletions
Frontend/power-tracker/src/components/manageGateway.tsx
+
8
−
5
View file @
4a017dff
...
@@ -60,12 +60,12 @@ function ManageGateways() {
...
@@ -60,12 +60,12 @@ function ManageGateways() {
return
(
return
(
<
ResizablePanelGroup
className
=
'flex h-[100%]'
direction
=
"horizontal"
>
<
ResizablePanelGroup
className
=
'flex h-[100%]'
direction
=
"horizontal"
>
<
ResizablePanel
minSize
=
{
5
0
}
>
<
ResizablePanel
minSize
=
{
5
1
}
>
{
/* Title and search bar */
}
{
/* Title and search bar */
}
<
div
className
=
"w-[100%] h-[40px] flex justify-between content-center"
>
<
div
className
=
"w-[100%] h-[40px] flex justify-between content-center"
>
<
h1
className
=
"scroll-m-20 text-2xl font-semibold tracking-tight"
>
Buildings and Departments
</
h1
>
<
h1
className
=
"scroll-m-20 text-2xl font-semibold tracking-tight"
>
Buildings and Departments
</
h1
>
<
Input
<
Input
className
=
"h-[30px] w-[200px]"
className
=
"h-[30px] w-[200px]
mr-[10px]
"
type
=
"text"
type
=
"text"
value
=
{
search
}
value
=
{
search
}
onChange
=
{
(
event
)
=>
setSearch
(
event
.
target
.
value
)
}
onChange
=
{
(
event
)
=>
setSearch
(
event
.
target
.
value
)
}
...
@@ -110,7 +110,7 @@ function ManageGateways() {
...
@@ -110,7 +110,7 @@ function ManageGateways() {
</
AlertDialogContent
>
</
AlertDialogContent
>
</
AlertDialog
>
</
AlertDialog
>
<
Table
className
=
'
w-[100%]
'
>
<
Table
className
=
''
>
<
TableCaption
>
Gateways
</
TableCaption
>
<
TableCaption
>
Gateways
</
TableCaption
>
<
TableHeader
>
<
TableHeader
>
<
TableRow
>
<
TableRow
>
...
@@ -123,7 +123,10 @@ function ManageGateways() {
...
@@ -123,7 +123,10 @@ function ManageGateways() {
<
TableBody
>
<
TableBody
>
{
gatewayData
.
gateway
.
map
((
gates
,
index
)
=>
(
{
gatewayData
.
gateway
.
map
((
gates
,
index
)
=>
(
<
TableRow
>
<
TableRow
>
<
TableCell
className
=
"min-w-[200px] max-w-[400px] scroll-m-20 text-xl font-semibold tracking-tight"
>
{
gates
.
name
}
</
TableCell
>
<
TableCell
className
=
"min-w-[200px] max-w-[300px] scroll-m-20 text-xl font-semibold tracking-tight flex"
>
<
Router
className
=
"mx-[20px]"
/>
<
h4
className
=
"scroll-m-20 text-xl font-semibold tracking-tight"
>
{
gates
.
name
}
</
h4
>
</
TableCell
>
<
TableCell
className
=
"w-[400px]"
>
{
gates
.
eui_gate
}
</
TableCell
>
<
TableCell
className
=
"w-[400px]"
>
{
gates
.
eui_gate
}
</
TableCell
>
<
TableCell
className
=
"w-[1fr] flex justify-end"
>
<
TableCell
className
=
"w-[1fr] flex justify-end"
>
<
Button
className
=
"h-[30px] w-[60px] mr-[5px]"
variant
=
"outline"
>
Edit
</
Button
>
<
Button
className
=
"h-[30px] w-[60px] mr-[5px]"
variant
=
"outline"
>
Edit
</
Button
>
...
@@ -136,7 +139,7 @@ function ManageGateways() {
...
@@ -136,7 +139,7 @@ function ManageGateways() {
</
ResizablePanel
>
</
ResizablePanel
>
<
ResizableHandle
/>
<
ResizableHandle
withHandle
className
=
"mx-[10px]"
/>
<
ResizablePanel
defaultSize
=
{
75
}
className
=
"w-[400px]"
>
<
ResizablePanel
defaultSize
=
{
75
}
className
=
"w-[400px]"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment