Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4a7d166b
Commit
4a7d166b
authored
Dec 17, 2021
by
Nastia Kushnir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make max width for file tree depend on screen width
parent
2ea0652b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
app/assets/javascripts/diffs/components/app.vue
app/assets/javascripts/diffs/components/app.vue
+1
-2
app/assets/javascripts/diffs/constants.js
app/assets/javascripts/diffs/constants.js
+0
-1
No files found.
app/assets/javascripts/diffs/components/app.vue
View file @
4a7d166b
...
@@ -26,7 +26,6 @@ import {
...
@@ -26,7 +26,6 @@ import {
TREE_LIST_WIDTH_STORAGE_KEY
,
TREE_LIST_WIDTH_STORAGE_KEY
,
INITIAL_TREE_WIDTH
,
INITIAL_TREE_WIDTH
,
MIN_TREE_WIDTH
,
MIN_TREE_WIDTH
,
MAX_TREE_WIDTH
,
TREE_HIDE_STATS_WIDTH
,
TREE_HIDE_STATS_WIDTH
,
MR_TREE_SHOW_KEY
,
MR_TREE_SHOW_KEY
,
CENTERED_LIMITED_CONTAINER_CLASSES
,
CENTERED_LIMITED_CONTAINER_CLASSES
,
...
@@ -632,7 +631,7 @@ export default {
...
@@ -632,7 +631,7 @@ export default {
},
},
},
},
minTreeWidth
:
MIN_TREE_WIDTH
,
minTreeWidth
:
MIN_TREE_WIDTH
,
maxTreeWidth
:
MAX_TREE_WIDTH
,
maxTreeWidth
:
window
.
innerWidth
/
2
,
howToMergeDocsPath
:
helpPagePath
(
'
user/project/merge_requests/reviews/index.md
'
,
{
howToMergeDocsPath
:
helpPagePath
(
'
user/project/merge_requests/reviews/index.md
'
,
{
anchor
:
'
checkout-merge-requests-locally-through-the-head-ref
'
,
anchor
:
'
checkout-merge-requests-locally-through-the-head-ref
'
,
}),
}),
...
...
app/assets/javascripts/diffs/constants.js
View file @
4a7d166b
...
@@ -42,7 +42,6 @@ export const TREE_LIST_WIDTH_STORAGE_KEY = 'mr_tree_list_width';
...
@@ -42,7 +42,6 @@ export const TREE_LIST_WIDTH_STORAGE_KEY = 'mr_tree_list_width';
export
const
INITIAL_TREE_WIDTH
=
320
;
export
const
INITIAL_TREE_WIDTH
=
320
;
export
const
MIN_TREE_WIDTH
=
240
;
export
const
MIN_TREE_WIDTH
=
240
;
export
const
MAX_TREE_WIDTH
=
400
;
export
const
TREE_HIDE_STATS_WIDTH
=
260
;
export
const
TREE_HIDE_STATS_WIDTH
=
260
;
export
const
OLD_LINE_KEY
=
'
old_line
'
;
export
const
OLD_LINE_KEY
=
'
old_line
'
;
...
...
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