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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
ee10a1cc
Commit
ee10a1cc
authored
Nov 30, 2016
by
tauriedavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20916 Shorten line length of issues and mrs
parent
4f365066
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
0 deletions
+32
-0
app/assets/javascripts/issue.js
app/assets/javascripts/issue.js
+6
-0
app/assets/javascripts/merge_request.js
app/assets/javascripts/merge_request.js
+6
-0
app/assets/stylesheets/framework/layout.scss
app/assets/stylesheets/framework/layout.scss
+4
-0
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+3
-0
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+13
-0
No files found.
app/assets/javascripts/issue.js
View file @
ee10a1cc
...
...
@@ -11,6 +11,7 @@
function
Issue
()
{
this
.
submitNoteForm
=
bind
(
this
.
submitNoteForm
,
this
);
// Prevent duplicate event bindings
this
.
limitContainerWidth
();
this
.
disableTaskList
();
if
(
$
(
'
a.btn-close
'
).
length
)
{
this
.
initTaskList
();
...
...
@@ -21,6 +22,11 @@
this
.
initCanCreateBranch
();
}
Issue
.
prototype
.
limitContainerWidth
=
function
()
{
var
$wrapper
=
$
(
'
.content-wrapper .container-fluid
'
);
$wrapper
.
addClass
(
'
limit-container-width
'
)
};
Issue
.
prototype
.
initTaskList
=
function
()
{
$
(
'
.detail-page-description .js-task-list-container
'
).
taskList
(
'
enable
'
);
return
$
(
document
).
on
(
'
tasklist:changed
'
,
'
.detail-page-description .js-task-list-container
'
,
this
.
updateTaskList
);
...
...
app/assets/javascripts/merge_request.js
View file @
ee10a1cc
...
...
@@ -14,6 +14,7 @@
// Options:
// action - String, current controller action
//
this
.
limitContainerWidth
();
this
.
opts
=
opts
!=
null
?
opts
:
{};
this
.
submitNoteForm
=
bind
(
this
.
submitNoteForm
,
this
);
this
.
$el
=
$
(
'
.merge-request
'
);
...
...
@@ -31,6 +32,11 @@
}
}
MergeRequest
.
prototype
.
limitContainerWidth
=
function
()
{
var
$wrapper
=
$
(
'
.content-wrapper .container-fluid
'
);
$wrapper
.
addClass
(
'
limit-container-width
'
)
};
// Local jQuery finder
MergeRequest
.
prototype
.
$
=
function
(
selector
)
{
return
this
.
$el
.
find
(
selector
);
...
...
app/assets/stylesheets/framework/layout.scss
View file @
ee10a1cc
...
...
@@ -26,6 +26,10 @@ body {
.container-limited
{
max-width
:
$fixed-layout-width
;
&
.limit-container-width
{
max-width
:
$limited-layout-width
;
}
}
...
...
app/assets/stylesheets/framework/variables.scss
View file @
ee10a1cc
...
...
@@ -166,6 +166,9 @@ $row-hover-border: #b2d7ff;
$progress-color
:
#c0392b
;
$header-height
:
50px
;
$fixed-layout-width
:
1280px
;
$limited-layout-width
:
958px
;
$line-length-width
:
700px
;
$gl-avatar-size
:
40px
;
$error-exclamation-point
:
#e62958
;
$border-radius-default
:
2px
;
$btn-transparent-color
:
#8f8f8f
;
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
ee10a1cc
.container-limited.limit-container-width
{
.issue-details
{
.description
,
.note-body
{
p
,
ul
,
ol
,
.code
{
max-width
:
$line-length-width
;
}
}
}
}
.issuable-details
{
section
{
.issuable-discussion
{
...
...
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