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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
e50739f4
Commit
e50739f4
authored
Jun 20, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply responsive design for Contributors graphs.
Fixes #18845.
parent
699badab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
app/assets/javascripts/graphs/stat_graph_contributors_graph.js.coffee
...avascripts/graphs/stat_graph_contributors_graph.js.coffee
+5
-1
app/assets/stylesheets/pages/stat_graph.scss
app/assets/stylesheets/pages/stat_graph.scss
+6
-0
No files found.
app/assets/javascripts/graphs/stat_graph_contributors_graph.js.coffee
View file @
e50739f4
...
...
@@ -121,7 +121,11 @@ class @ContributorsMasterGraph extends ContributorsGraph
class
@
ContributorsAuthorGraph
extends
ContributorsGraph
constructor
:
(
@
data
)
->
@
width
=
$
(
'.content'
).
width
()
/
2
-
100
# Don't split graph size in half for mobile devices.
if
$
(
window
).
width
()
<
768
@
width
=
$
(
'.content'
).
width
()
-
80
else
@
width
=
(
$
(
'.content'
).
width
()
/
2
)
-
100
@
height
=
200
@
x
=
null
@
y
=
null
...
...
app/assets/stylesheets/pages/stat_graph.scss
View file @
e50739f4
...
...
@@ -25,13 +25,19 @@
&
:nth-child
(
even
)
{
float
:
right
;
}
float
:
left
;
margin-top
:
10px
;
@media
(
max-width
:
$screen-sm-min
)
{
width
:
100%
;
}
}
.person
.spark
{
display
:
block
;
background
:
#f3f3f3
;
width
:
100%
;
}
.person
.area-contributor
{
...
...
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