Formatting

This commit is contained in:
Daniel Schädler 2025-03-19 21:18:00 +01:00
parent d3913d17c3
commit 173f5768bf
1 changed files with 17 additions and 15 deletions

View File

@ -22,21 +22,23 @@ export class TurniereNavigation extends React.Component {
render() { render() {
const {tournament} = this.props; const {tournament} = this.props;
return (<Navbar color="light" light expand="lg" sticky="top"> return (
<NavbarBrand className={'hide-below-260-w'} href="/">turnie.re</NavbarBrand> <Navbar color="light" light expand="lg" sticky="top">
{tournament && tournament.timerEnd && <NavbarBrand className={'hide-below-260-w'} href="/">turnie.re</NavbarBrand>
<NavbarText className={'m-auto'}> {tournament && tournament.timerEnd &&
<span className={'hide-below-340-w'}>Spielzeit: </span><Timer timerEnd={tournament.timerEnd} /> <NavbarText className="m-auto">
</NavbarText> <span className={'hide-below-340-w'}>Spielzeit: </span><Timer timerEnd={tournament.timerEnd} />
} </NavbarText>
<NavbarToggler onClick={this.toggle}/> }
<Collapse isOpen={!this.state.collapsed} navbar> <NavbarToggler onClick={this.toggle}/>
<NavLinks/> <Collapse isOpen={!this.state.collapsed} navbar>
<div className="ms-auto me-0"> <NavLinks/>
<LoginLogoutButtons/> <div className="ms-auto">
</div> <LoginLogoutButtons/>
</Collapse> </div>
</Navbar>); </Collapse>
</Navbar>
);
} }
} }