diff --git a/css/base.css b/css/base.css index b74c2f02..afa2fabb 100644 --- a/css/base.css +++ b/css/base.css @@ -1339,14 +1339,14 @@ ul.tabbar > li { ul.tabbar > li > a { position: relative; padding-top: 0.75rem; - text-decoration: none; - text-transform: uppercase; display: block; - min-width: 6rem; + min-width: 6.5rem; text-align: center; line-height: 2rem; font-weight: 400; - font-size: 1.1rem; + font-size: 1.25rem; + font-variant: small-caps; + text-decoration: none; color: rgba(33,150,243,0.6); overflow: hidden; box-shadow: inset 0 -2px 2.5px -1px rgba(0,0,0,0.25); diff --git a/index.js b/index.js index d96ae139..f0ef0c87 100644 --- a/index.js +++ b/index.js @@ -1429,16 +1429,22 @@ class SettingsView extends React.PureComponent { super(props); this.state = { - transport: "def" + transport: props.transport || "def", + messageSounds: props.messageSounds }; this.handleSubmit = this.handleSubmit.bind(this); + this.handleMessageSoundsToggle = this.handleMessageSoundsToggle.bind(this); this.handleTransportSelected = this.handleTransportSelected.bind(this); } handleSubmit(e) { e.preventDefault(); - this.props.onUpdate(null, this.state.transport); + this.props.onUpdate(null, this.state.transport, this.state.messageSounds); + } + + handleMessageSoundsToggle(unused, checked) { + this.setState({messageSounds: checked}); } handleTransportSelected(e) { @@ -1463,10 +1469,20 @@ class SettingsView extends React.PureComponent { }); return (