Skip to content

Commit

Permalink
fix: cleanup misc overflow styles
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Jul 7, 2020
1 parent f9cd14f commit 28aa1fe
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 22 deletions.
16 changes: 8 additions & 8 deletions packages/metastream-app/src/components/common/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@
}

.medium {
padding: 0 12px;
height: 40px;
font-size: 18px;
padding: 0 0.75rem;
height: 2.5rem;
font-size: 1.125rem;
}

.medium svg {
margin-right: 10px;
margin-right: 0.625rem;
}

.large {
padding: 10px 16px;
height: 60px;
font-size: 24px;
padding: 0.625rem 1rem;
height: 3.75rem;
font-size: 1.5rem;
}

.large svg {
margin-right: 14px;
margin-right: 0.875rem;
}

.tooltip {
Expand Down
2 changes: 2 additions & 0 deletions packages/metastream-app/src/components/lobby/PanelHeader.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
composes: row-center from '~styles/layout.css';
flex-grow: 1;
padding-right: 0;
min-width: 0;
height: 100%;
}

.title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
display: block;
}

.sessionModes {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}

.sessionMode button:not(:first-of-type) {
margin-left: 1rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,21 @@ class SessionSettings extends Component<PrivateProps, IState> {
return (
<p className={styles.sessionMode}>
<label className={styles.label}>{t('sessionMode')}</label>
{modes.map(mode => (
<HighlightButton
key={mode.label}
icon={mode.icon}
size="large"
highlight={sessionMode === mode.mode}
onClick={() => mode.onClick(mode.mode)}
onMouseEnter={() => this.setState({ previewMode: mode.mode })}
onMouseLeave={() => this.setState({ previewMode: undefined })}
>
{mode.label}
</HighlightButton>
))}
<div className={styles.sessionModes}>
{modes.map(mode => (
<HighlightButton
key={mode.label}
icon={mode.icon}
size="large"
highlight={sessionMode === mode.mode}
onClick={() => mode.onClick(mode.mode)}
onMouseEnter={() => this.setState({ previewMode: mode.mode })}
onMouseLeave={() => this.setState({ previewMode: undefined })}
>
{mode.label}
</HighlightButton>
))}
</div>
{selectedMode && <label className={styles.descLabel}>{selectedMode.desc}</label>}
</p>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/metastream-app/src/locale/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
unlimited: 'Неограниченный',
unlockQueue: 'Разблокировать очередь',
username: 'Имя пользователя',
users: '',
users: 'Пользователь',
userJoined: '<Username id="{{userId}}">{{username}}</Username> присоеденился',
userLeft: '<Username id="{{userId}}">{{username}}</Username> вышел',
viewOnGitHub: 'Посмотреть на GitHub',
Expand Down

0 comments on commit 28aa1fe

Please sign in to comment.