Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
c6f197f5
Commit
c6f197f5
authored
May 28, 2018
by
chrisgarrity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust share-date to give action buttons more room
parent
0bc5bf74
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
src/views/preview/presentation.jsx
src/views/preview/presentation.jsx
+0
-1
src/views/preview/preview.scss
src/views/preview/preview.scss
+17
-8
No files found.
src/views/preview/presentation.jsx
View file @
c6f197f5
...
...
@@ -306,7 +306,6 @@ class PreviewPresentation extends React.Component {
}
{
/* eslint-enable react/jsx-sort-props */
}
</
div
>
<
FlexRow
className=
"action-buttons"
>
<
Button
className=
"action-button studio-button"
>
Add to Studio
...
...
src/views/preview/preview.scss
View file @
c6f197f5
...
...
@@ -4,11 +4,18 @@
/* stage size contants
* this is a hack right now - stage includes padding of .5rem (8px) for alignment in gui
* in www the player is placed with margin -.5rem to align the edge.
* the height is calculated from the actual height on the page (404)
- .5rem
* the height is calculated from the actual height on the page (404)
*/
$gui-width
:
496px
;
$stage-width
:
480px
;
$stage-height
:
406px
;
$stage-height
:
404px
;
// remix credit height: 52px
// project text label line-height + margin-bottom .5rem: 19px + 8px = 27px
// Formsy wrapper adds 3px to the input height for
$description-input
:
172px
;
// $stage-height / 2 - $project-label - $wrapper
$description-input-small
:
120px
;
// normal $description-input - $remix-credit
/* override view padding for share banner */
#view
{
...
...
@@ -184,7 +191,6 @@ $stage-height: 406px;
}
.project-notes
{
margin-bottom
:
.75rem
;
// not 1.5rem because of stage padding
margin-left
:
1rem
;
height
:
$stage-height
;
...
...
@@ -194,14 +200,16 @@ $stage-height: 406px;
}
.share-date
{
margin-right
:
2rem
;
vertical-align
:
middle
;
line-height
:
2rem
;
color
:
$type-gray
;
font-size
:
.875rem
;
}
.subactions
{
margin-left
:
1
.5rem
;
justify-content
:
space-between
;
justify-content
:
flex-end
;
flex
:
1
;
}
...
...
@@ -272,12 +280,12 @@ $stage-height: 406px;
}
.inplace-textarea
{
height
:
173px
;
height
:
$description-input
;
}
}
.project-description-edit.remixes
.inplace-textarea
{
height
:
130px
;
height
:
$description-input-small
;
}
.copyleft
{
...
...
@@ -288,8 +296,9 @@ $stage-height: 406px;
}
.stats
{
width
:
$stage-width
;
//
width: $stage-width;
justify-content
:
flex-start
;
line-height
:
2rem
;
}
.project-loves
,
...
...
@@ -370,7 +379,7 @@ $stage-height: 406px;
}
.action-button
{
margin
-left
:
.5rem
;
margin
:
0
0
0
.5rem
;
border-radius
:
19px
;
background-color
:
$ui-blue
;
padding
:
0
.5rem
;
...
...
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