Skip to content

Commit

Permalink
fix(top): bold like styling on tab chose
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed May 16, 2018
1 parent d9ca345 commit 5552284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Header extends React.Component {
<div ref={this.header} className='header'>
<Card className='w100p header-main' style={{position: 'fixed', zIndex: 2}}>
<CardMedia
overlay={<CardTitle className='header-title' title="Yarrr, Landlubbers!" subtitle={
overlay={<CardTitle className='header-title' title="Yarrr, Landlubbers!" style={{paddingTop: 2}} subtitle={
<div>
<div className='row' style={{position: 'absolute', top: -65}}>
<svg className='clickable'
Expand Down
6 changes: 3 additions & 3 deletions src/app/top-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class TopPage extends Page {
return null;

return (
<Tab style={{minWidth: 150}} key={index} label={this.descriptions[type]} value={type}>
<Tab buttonStyle={type === this.state.type ? {fontWeight: 'bold'} : undefined} style={{minWidth: 150}} key={index} label={this.descriptions[type]} value={type}>
<Tabs
className='w100p'
value={this.state.time}
Expand All @@ -138,15 +138,15 @@ export default class TopPage extends Page {

if(!torrents)
return (
<Tab style={{minWidth: 150}} key={index} label={this.times[time]} value={time}>
<Tab buttonStyle={time === this.state.time ? {fontWeight: 'bold'} : undefined} style={{minWidth: 150}} key={index} label={this.times[time]} value={time}>
<div className='pad0-75 w100p '>
<LinearProgress mode="indeterminate" />
</div>
</Tab>
)

return (
<Tab style={{minWidth: 150}} key={index} label={this.times[time]} value={time}>
<Tab buttonStyle={time === this.state.time ? {fontWeight: 'bold'} : undefined} style={{minWidth: 150}} key={index} label={this.times[time]} value={time}>
<List style={{minWidth: '20em'}}>
{
torrents.map((torrent, index) => {
Expand Down

0 comments on commit 5552284

Please sign in to comment.