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
e50739f4
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
stat_graph_contributors_graph.js.coffee
...avascripts/graphs/stat_graph_contributors_graph.js.coffee
+5
-1
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