Make input .help texts position absolute so that it does not affect level negative when pop up, it also saves some space underneath

This commit is contained in:
Florian Scholdei
2019-11-26 16:04:42 +01:00
parent b17f03247b
commit 111465f853
2 changed files with 7 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ class FileButtonAddons extends React.Component<Props> {
};
color = (selected: boolean) => {
return selected ? "link is-selected" : null;
return selected ? "link is-selected" : "";
};
render() {
@@ -27,14 +27,14 @@ class FileButtonAddons extends React.Component<Props> {
return (
<ButtonAddons className={className}>
<div title={t("sources.content.sourcesButton")}>
<Button action={this.showSources} className="reduced" color={this.color(!historyIsSelected)}>
<Button action={this.showSources} color={this.color(!historyIsSelected)}>
<span className="icon">
<i className="fas fa-code" />
</span>
</Button>
</div>
<div title={t("sources.content.historyButton")}>
<Button action={this.showHistory} className="reduced" color={this.color(historyIsSelected)}>
<Button action={this.showHistory} color={this.color(historyIsSelected)}>
<span className="icon">
<i className="fas fa-history" />
</span>