mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 02:04:30 -05:00
Add flex to grow button (#110)
* Add flex to grow button Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Add flex to grow button Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
b9d7880075
commit
8ab0e54431
1 changed files with 7 additions and 7 deletions
|
@ -1,15 +1,15 @@
|
||||||
import React, { Fragment } from 'react'
|
import React, { Fragment } from 'react'
|
||||||
import { Navbar } from 'react-bootstrap'
|
import { Navbar } from 'react-bootstrap'
|
||||||
|
import { Trans, useTranslation } from 'react-i18next'
|
||||||
import { useSelector } from 'react-redux'
|
import { useSelector } from 'react-redux'
|
||||||
import { ApplicationState } from '../../../../../redux'
|
import { ApplicationState } from '../../../../../redux'
|
||||||
import { NewUserNoteButton } from '../new-user-note-button'
|
|
||||||
import { UserDropdown } from '../user-dropdown/user-dropdown'
|
|
||||||
import { SignInButton } from '../sign-in-button'
|
|
||||||
import { NewGuestNoteButton } from '../new-guest-note-button'
|
|
||||||
import { LoginStatus } from '../../../../../redux/user/types'
|
import { LoginStatus } from '../../../../../redux/user/types'
|
||||||
import { HeaderNavLink } from '../header-nav-link'
|
import { HeaderNavLink } from '../header-nav-link'
|
||||||
|
import { NewGuestNoteButton } from '../new-guest-note-button'
|
||||||
|
import { NewUserNoteButton } from '../new-user-note-button'
|
||||||
|
import { SignInButton } from '../sign-in-button'
|
||||||
|
import { UserDropdown } from '../user-dropdown/user-dropdown'
|
||||||
import './header-bar.scss'
|
import './header-bar.scss'
|
||||||
import { Trans, useTranslation } from 'react-i18next'
|
|
||||||
|
|
||||||
const HeaderBar: React.FC = () => {
|
const HeaderBar: React.FC = () => {
|
||||||
useTranslation()
|
useTranslation()
|
||||||
|
@ -28,13 +28,13 @@ const HeaderBar: React.FC = () => {
|
||||||
<div className="d-inline-flex">
|
<div className="d-inline-flex">
|
||||||
{user.status === LoginStatus.forbidden
|
{user.status === LoginStatus.forbidden
|
||||||
? <Fragment>
|
? <Fragment>
|
||||||
<span className={'mr-1'}>
|
<span className={'mr-1 d-flex'}>
|
||||||
<NewGuestNoteButton/>
|
<NewGuestNoteButton/>
|
||||||
</span>
|
</span>
|
||||||
<SignInButton/>
|
<SignInButton/>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
: <Fragment>
|
: <Fragment>
|
||||||
<span className={'mr-1'}>
|
<span className={'mr-1 d-flex'}>
|
||||||
<NewUserNoteButton/>
|
<NewUserNoteButton/>
|
||||||
</span>
|
</span>
|
||||||
<UserDropdown/>
|
<UserDropdown/>
|
||||||
|
|
Loading…
Reference in a new issue