Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Improvement of buttons on TorrentViewer #7679

Merged
merged 1 commit into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions js/webtorrent/components/torrentViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class TorrentViewer extends React.Component {
<div className='siteDetailsPageHeader'>
{titleElem}
<div className='headerActions'>
<Button
l10nId='saveTorrentFile'
className='whiteButton saveTorrentFile'
onClick={() => dispatch('saveTorrentFile')} />
<Button
l10nId={mainButtonId}
className='whiteButton mainButton'
className='primaryButton mainButton'
disabled={!!torrent}
onClick={() => dispatch('start')} />
<Button
l10nId='saveTorrentFile'
className='whiteButton saveTorrentFile'
onClick={() => dispatch('saveTorrentFile')} />
</div>
</div>

Expand Down
9 changes: 0 additions & 9 deletions less/webtorrent.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@
min-width: 704px;

.siteDetailsPageHeader {
.headerActions > * {
float: right;
}
.mainButton {
background: linear-gradient(@braveLightOrange, @braveOrange);
border: 2px solid transparent;
border-top: 2px solid @braveLightOrange;
border-bottom: 2px solid @braveOrange;
box-shadow: @buttonShadow;
color: white;
font-weight: 400;
}
}
Expand Down