diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-15 13:25:33 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-15 13:33:33 +0300 |
commit | d17de657fe782eb838545aabeee00285e181dce1 (patch) | |
tree | 20c5a7c0035cb7152be97065020899cbb5bdd865 /app/assets/javascripts/diffs/constants.js | |
parent | 3f55633a2bd95c50168ecbae43230af90d88dbe3 (diff) |
Make the file tree in merge requests resizable
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51857
Diffstat (limited to 'app/assets/javascripts/diffs/constants.js')
-rw-r--r-- | app/assets/javascripts/diffs/constants.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/constants.js b/app/assets/javascripts/diffs/constants.js index bd188d9de9e..7002655ea49 100644 --- a/app/assets/javascripts/diffs/constants.js +++ b/app/assets/javascripts/diffs/constants.js @@ -36,3 +36,9 @@ export const MR_TREE_SHOW_KEY = 'mr_tree_show'; export const TREE_TYPE = 'tree'; export const TREE_LIST_STORAGE_KEY = 'mr_diff_tree_list'; export const WHITESPACE_STORAGE_KEY = 'mr_show_whitespace'; +export const TREE_LIST_WIDTH_STORAGE_KEY = 'mr_tree_list_width'; + +export const INITIAL_TREE_WIDTH = 320; +export const MIN_TREE_WIDTH = 240; +export const MAX_TREE_WIDTH = 400; +export const TREE_HIDE_STATS_WIDTH = 260; |