Skip to content

Commit 41bae4b

Browse files
christian-schillingLMG
authored andcommitted
Restyle history view
Change-Id: history-style
1 parent 997a925 commit 41bae4b

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

josh-ui/src/App.scss

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,20 @@ nav {
147147
}
148148
}
149149

150+
.history-list-entry .summary {
151+
@include ui-link-clickable;
152+
&:hover {
153+
background: $color-background-highlight;
154+
}
155+
}
156+
157+
.history-list-entry .hash {
158+
@include ui-link-clickable;
159+
&:hover {
160+
background: $color-background-highlight;
161+
}
162+
}
163+
150164
.commit-list-entry-browse {
151165
@include ui-link-clickable;
152166
&:hover {
@@ -157,19 +171,24 @@ nav {
157171

158172
.commit-list-entry {
159173
padding: .4em .4em;
174+
display: block;
175+
176+
&:hover {
177+
background: $color-background-highlight;
178+
}
160179

161180
span.hash {
162181
margin: 0 0.7em 0 0;
163182
color: $color-highlight;
164183
font-weight: bolder;
165184
}
166185
span.authorEmail {
186+
float: right;
167187
margin: 0 0.7em 0 0;
168-
color: $color-highlight;
188+
color: $color-font-shadowed;
169189
font-weight: bolder;
170190
}
171191
span.summary {
172-
display: block;
173192
margin: 0 0.7em 0 0;
174193
font-weight: bolder;
175194
}

josh-ui/src/History.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,19 @@ export class HistoryList extends React.Component<HistoryBrowserProps, State> {
9191

9292
return values.map((entry) => {
9393
return <div key={entry.hash} className="commit-list-entry">
94-
<div
95-
className="commit-list-entry-dir"
96-
onClick={navigateChange.bind(this, entry.original.hash)}>
97-
<span className="summary">{entry.summary}</span>
94+
<div className="history-list-entry" >
95+
<span
96+
className="hash"
97+
onClick={navigateBrowse.bind(this, entry.original.hash)}>
98+
{entry.hash.slice(0,8)}
99+
</span>
100+
<span
101+
className="summary"
102+
onClick={navigateChange.bind(this, entry.original.hash)}>
103+
{entry.summary}
104+
</span>
98105
<span className="authorEmail">{entry.authorEmail}</span>
99106
</div>
100-
<div
101-
className="commit-list-entry-browse"
102-
onClick={navigateBrowse.bind(this, entry.original.hash)}>
103-
Browse
104-
</div>
105107
</div>
106108

107109
})

0 commit comments

Comments
 (0)