BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
942488b8
Commit
942488b8
authored
Apr 05, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ide-sidebar-min-width' into 'master'
Changed IDE sidebar min width Closes #44836 See merge request gitlab-org/gitlab-ce!18123
parents
1bca36b6
fc15ebaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
56 deletions
+53
-56
resizable_panel.vue
app/assets/javascripts/ide/components/resizable_panel.vue
+53
-56
No files found.
app/assets/javascripts/ide/components/resizable_panel.vue
View file @
942488b8
<
script
>
import
{
mapActions
,
mapState
}
from
'vuex'
;
import
PanelResizer
from
'~/vue_shared/components/panel_resizer.vue'
;
import
{
mapActions
,
mapState
}
from
'vuex'
;
import
PanelResizer
from
'~/vue_shared/components/panel_resizer.vue'
;
export
default
{
components
:
{
PanelResizer
,
export
default
{
components
:
{
PanelResizer
,
},
props
:
{
collapsible
:
{
type
:
Boolean
,
required
:
true
,
},
props
:
{
collapsible
:
{
type
:
Boolean
,
required
:
true
,
},
initialWidth
:
{
type
:
Number
,
required
:
true
,
},
minSize
:
{
type
:
Number
,
required
:
false
,
default
:
200
,
},
side
:
{
type
:
String
,
required
:
true
,
},
initialWidth
:
{
type
:
Number
,
required
:
true
,
},
data
()
{
return
{
width
:
this
.
initialWidth
,
};
minSize
:
{
type
:
Number
,
required
:
false
,
default
:
340
,
},
computed
:
{
...
mapState
({
collapsed
(
state
)
{
return
state
[
`
${
this
.
side
}
PanelCollapsed`
];
},
}),
panelStyle
()
{
if
(
!
this
.
collapsed
)
{
return
{
width
:
`
${
this
.
width
}
px`
,
};
}
return
{};
},
side
:
{
type
:
String
,
required
:
true
,
},
methods
:
{
...
mapActions
([
'setPanelCollapsedStatus'
,
'setResizingStatus'
,
]),
toggleFullbarCollapsed
()
{
if
(
this
.
collapsed
&&
this
.
collapsible
)
{
this
.
setPanelCollapsedStatus
({
side
:
this
.
side
,
collapsed
:
!
this
.
collapsed
,
});
}
},
data
()
{
return
{
width
:
this
.
initialWidth
,
};
},
computed
:
{
...
mapState
({
collapsed
(
state
)
{
return
state
[
`
${
this
.
side
}
PanelCollapsed`
];
},
}),
panelStyle
()
{
if
(
!
this
.
collapsed
)
{
return
{
width
:
`
${
this
.
width
}
px`
,
};
}
return
{};
},
},
methods
:
{
...
mapActions
([
'setPanelCollapsedStatus'
,
'setResizingStatus'
]),
toggleFullbarCollapsed
()
{
if
(
this
.
collapsed
&&
this
.
collapsible
)
{
this
.
setPanelCollapsedStatus
({
side
:
this
.
side
,
collapsed
:
!
this
.
collapsed
,
});
}
},
maxSize
:
(
window
.
innerWidth
/
2
),
};
},
maxSize
:
window
.
innerWidth
/
2
,
};
</
script
>
<
template
>
...
...
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