Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scientia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zhige Yu
scientia
Commits
6cade088
Commit
6cade088
authored
4 years ago
by
danieldeng2
Browse files
Options
Downloads
Patches
Plain Diff
Fix sidebar behaviour on tablets
parent
144bc608
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/App.tsx
+16
-6
16 additions, 6 deletions
frontend/src/components/App.tsx
frontend/src/components/pages/StandardView/index.tsx
+1
-1
1 addition, 1 deletion
frontend/src/components/pages/StandardView/index.tsx
with
17 additions
and
7 deletions
frontend/src/components/App.tsx
+
16
−
6
View file @
6cade088
...
...
@@ -29,22 +29,32 @@ class App extends React.Component<{}, AppState> {
}
toggleLeftBar
()
{
if
(
window
.
innerWidth
<=
1024
)
{
if
(
window
.
innerWidth
<=
1024
)
{
this
.
setState
({
toggledRight
:
fals
e
,
});
toggledRight
:
tru
e
,
});
}
if
(
window
.
innerWidth
<=
992
)
{
this
.
setState
({
toggledRight
:
false
,
});
}
this
.
setState
((
state
)
=>
({
toggledLeft
:
!
state
.
toggledLeft
,
}));
}
toggleRightBar
()
{
if
(
window
.
innerWidth
<=
1024
)
{
if
(
window
.
innerWidth
<=
1024
)
{
this
.
setState
({
toggledLeft
:
true
,
});
}
if
(
window
.
innerWidth
<=
992
)
{
this
.
setState
({
toggledLeft
:
false
,
});
}
});
}
this
.
setState
((
state
)
=>
({
toggledRight
:
!
state
.
toggledRight
,
}));
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/pages/StandardView/index.tsx
+
1
−
1
View file @
6cade088
...
...
@@ -28,7 +28,7 @@ const StandardView: React.FC<StandardViewProps> = ({
toggledLeft
,
toggledRight
,
onOverlayClick
,
}:
StandardViewProps
)
=>
{
}:
StandardViewProps
)
=>
{
return
(
<
div
id
=
"wrapper"
...
...
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