change label to tooltip for fileView-actionbar buttons

This commit is contained in:
Eduard Heimbuch
2019-08-28 09:36:52 +02:00
parent 65f89720df
commit 7217a244a7

View File

@@ -27,26 +27,28 @@ class FileButtonGroup extends React.Component<Props> {
return ( return (
<ButtonAddons> <ButtonAddons>
<Button <div title={t("sources.content.sourcesButton")}>
action={this.showSources} <Button
className="reduced-mobile" action={this.showSources}
color={this.color(!historyIsSelected)} className="reduced"
> color={this.color(!historyIsSelected)}
<span className="icon"> >
<i className="fas fa-code" /> <span className="icon">
</span> <i className="fas fa-code" />
<span>{t("sources.content.sourcesButton")}</span> </span>
</Button> </Button>
<Button </div>
action={this.showHistory} <div title={t("sources.content.historyButton")}>
className="reduced-mobile" <Button
color={this.color(historyIsSelected)} action={this.showHistory}
> className="reduced"
<span className="icon"> color={this.color(historyIsSelected)}
<i className="fas fa-history" /> >
</span> <span className="icon">
<span>{t("sources.content.historyButton")}</span> <i className="fas fa-history" />
</Button> </span>
</Button>
</div>
</ButtonAddons> </ButtonAddons>
); );
} }