Skip to content

Commit 16ac748

Browse files
authored
Merge pull request #39 from xsnippet/line-height
Style and UX fixes
2 parents 91068c2 + 9c6a857 commit 16ac748

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/components/RecentSnippetItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const RecentSnippetItem = ({ snippet }) => {
88
<li className="recent-snippet-item">
99
<div className="recent-snippet-data">
1010
<div>
11-
<span className="recent-snippet-data-title">{snippetTitle}</span>
11+
<Link to={`${snippet.get('id')}`} className="recent-snippet-data-title">{snippetTitle}</Link>
1212
<span className="recent-snippet-data-lang">[ {snippet.get('syntax', 'Text')} ]</span>
1313
</div>
1414
<span className="recent-snippet-data-author">By Guest</span>

src/styles/RecentSnippets.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
&-title
2525
color: text-green
2626
font-size: 19px
27+
text-decoration: none
28+
&:hover
29+
color: text-dark-green
2730
&-lang
2831
margin-left: 15px
2932
color: text-dark

src/styles/common/overwrite.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.react-codemirror2,
44
.CodeMirror
55
height: 100% !important
6-
line-height: 1.2
6+
line-height: 1.4
77

88
.new-snippet .react-codemirror2,
99
.new-snippet .CodeMirror

src/styles/common/variables.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ site-bg = color-gainboro-white-s0
44
text-dark = color-night-rider-grey-s1
55
text-light = color-white-white-s100
66
text-green = color-niagara-green-s75
7+
text-dark-green = color-elf-green-green-s82
78
text-grey = color-shady-lady-grey-s0
89

910
border-light = color-white-smoke-white-s0

0 commit comments

Comments
 (0)