11import * as React from "react" ;
2- import { Map } from "immutable" ;
2+ import { List , Map } from "immutable" ;
33
44import { updater } from "../state_updater" ;
55import { ICoreState , MsgProps , UIProps } from "../core_state" ;
66import { Env } from "../../common/env" ;
77import { IconProps , getIcon } from "../visual/icons" ;
88import { colorClass } from "../visual/colors" ;
9+ import { Flexbox } from "../layout/flexbox" ;
910
1011const defaultIconProps : IconProps = {
1112 name : "RiFolder2Fill" ,
@@ -52,19 +53,19 @@ export class Tabs extends React.Component<Props, State, {}> {
5253
5354 const iconColor = displaying === option ? iconProps . color : "normal" ;
5455 const icon = getIcon ( iconProps . name , iconProps . size , iconColor ) ;
55- const fontColor =
56- displaying === option ? `${ colorClass ( iconColor ) } - font` : "normal-font " ;
56+ const fontWeight =
57+ displaying === option ? `font-bold ` : "" ;
5758
5859 return (
5960 < button
6061 key = { `${ this . props . targetControl } -${ option } ` }
6162 onClick = { ( ) => {
6263 this . setTab ( this . props . targetControl , option ) ;
6364 } }
64- className = "float-l margin-r-m minor-bg "
65+ className = "float-left mr-12 "
6566 >
66- < div className = "float-l icon-s margin-r-s" > { icon } </ div >
67- < div className = { `float-l font-xs ${ fontColor } ` } >
67+ < div className = "float-left icon-s margin-r-s" > { icon } </ div >
68+ < div className = { `float-left font-xs ${ fontWeight } ` } >
6869 { this . props . msg . pkg . get (
6970 `control.${ this . props . targetControl } .${ option } `
7071 ) }
@@ -75,10 +76,21 @@ export class Tabs extends React.Component<Props, State, {}> {
7576 } ) ;
7677
7778 return (
78- < div className = { `tabs control-${ this . props . targetControl } ` } >
79- { tabs }
80- < div className = "fix" > </ div >
81- </ div >
79+ < Flexbox
80+ children = { List ( [
81+ < div className = { `tabs control-${ this . props . targetControl } ` } >
82+ { tabs }
83+ < div className = "fix" > </ div >
84+ </ div > ,
85+ < a href = "//github.com/ihexxa/quickshare" className = "major-font" >
86+ { getIcon ( "FaGithub" , "2rem" , "normal" ) }
87+ </ a > ,
88+ ] ) }
89+ childrenStyles = { List ( [
90+ { flex : "0 0 auto" } ,
91+ { justifyContent : "flex-end" } ,
92+ ] ) }
93+ />
8294 ) ;
8395 }
8496}
0 commit comments