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
fb4f6b6d
Commit
fb4f6b6d
authored
Dec 12, 2018
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ordering and sizing of loves, extensions and mod info
parent
0af21613
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
38 deletions
+49
-38
src/views/preview/mod-info.jsx
src/views/preview/mod-info.jsx
+38
-34
src/views/preview/mod-info.scss
src/views/preview/mod-info.scss
+6
-0
src/views/preview/stats.scss
src/views/preview/stats.scss
+4
-4
src/views/preview/subactions.scss
src/views/preview/subactions.scss
+1
-0
No files found.
src/views/preview/mod-info.jsx
View file @
fb4f6b6d
...
...
@@ -9,43 +9,47 @@ const FlexRow = require('../../components/flex-row/flex-row.jsx');
require
(
'
./mod-info.scss
'
);
const
ModInfo
=
props
=>
(
<
FlexRow
className=
"mod-info"
>
{
/* eslint-disable react/jsx-sort-props */
}
{
props
.
revisedDate
&&
<
div
className=
"mod-date"
>
<
FormattedDate
value=
{
Date
.
parse
(
props
.
revisedDate
)
}
day=
"2-digit"
month=
"short"
year=
"numeric"
<
FlexRow
className=
"mod-info-container"
>
<
div
className=
"project-textlabel"
>
<
FormattedMessage
id=
"project.moderationInfoLabel"
/>
</
div
>
<
FlexRow
className=
"mod-info"
>
{
/* eslint-disable react/jsx-sort-props */
}
{
props
.
revisedDate
&&
<
div
className=
"mod-date"
>
<
FormattedDate
value=
{
Date
.
parse
(
props
.
revisedDate
)
}
day=
"2-digit"
month=
"short"
year=
"numeric"
/>
{
'
-
'
}
<
FormattedTime
value=
{
Date
.
parse
(
props
.
revisedDate
)
}
hour=
"numeric"
minute=
"numeric"
timeZoneName=
"short"
/>
</
div
>
}
{
/* eslint-enable react/jsx-sort-props */
}
<
div
className=
"mod-sprites"
>
<
FormattedMessage
id=
"project.numSprites"
values=
{
{
number
:
props
.
sprites
}
}
/>
{
'
-
'
}
<
FormattedTime
value=
{
Date
.
parse
(
props
.
revisedDate
)
}
hour=
"numeric"
minute=
"numeric"
timeZoneName=
"short"
</
div
>
<
div
className=
"mod-scripts"
>
<
FormattedMessage
id=
"project.numScripts"
values=
{
{
number
:
props
.
scripts
}
}
/>
</
div
>
}
{
/* eslint-enable react/jsx-sort-props */
}
<
div
className=
"mod-sprites"
>
<
FormattedMessage
id=
"project.numSprites"
values=
{
{
number
:
props
.
sprites
}
}
/>
</
div
>
<
div
className=
"mod-scripts"
>
<
FormattedMessage
id=
"project.numScripts"
values=
{
{
number
:
props
.
scripts
}
}
/>
</
div
>
</
FlexRow
>
</
FlexRow
>
);
...
...
src/views/preview/mod-info.scss
View file @
fb4f6b6d
@import
"../../frameless"
;
.mod-info-container
{
margin-bottom
:
.625rem
;
/* Match the extra padding below extension chips */
flex-direction
:
column
;
align-items
:
flex-start
;
}
.mod-info
{
line-height
:
2rem
;
justify-content
:
flex-start
;
...
...
src/views/preview/stats.scss
View file @
fb4f6b6d
...
...
@@ -32,10 +32,11 @@
.project-remixes
,
.project-views
{
display
:
inline
;
display
:
flex
;
padding-right
:
2rem
;
font-size
:
1rem
;
font-weight
:
bold
;
align-items
:
center
;
&
:before
{
display
:
inline-block
;
...
...
@@ -43,9 +44,8 @@
background-repeat
:
no-repeat
;
background-position
:
center
center
;
background-size
:
contain
;
width
:
1
.5rem
;
height
:
1
.5rem
;
vertical-align
:
-.25rem
;
width
:
1
.75rem
;
height
:
1
.75rem
;
content
:
""
;
}
}
...
...
src/views/preview/subactions.scss
View file @
fb4f6b6d
...
...
@@ -39,6 +39,7 @@
.action-buttons
{
display
:
flex
;
margin-top
:
0
;
margin-bottom
:
0
;
color
:
$type-white
;
font-size
:
.8rem
;
font-weight
:
500
;
...
...
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