Skip to content

Commit

Permalink
Added reset plot button css
Browse files Browse the repository at this point in the history
  • Loading branch information
JawHawk committed Apr 14, 2024
1 parent 709536d commit 1db81bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 9 additions & 1 deletion benchexec/tablegenerator/react-table/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,9 @@ $content-height: calc(100vh - 43px); // height of .menu sums up to 43px
}
}

//------------------plot------------------
$plot-select-button-height: 25px;

.quantilePlot {
margin: 20px;

Expand Down Expand Up @@ -1001,12 +1004,17 @@ $content-height: calc(100vh - 43px); // height of .menu sums up to 43px
margin: 0.4em 1em;
margin-left: 0;
border: 1px solid #c3c3c3;
height: 25px;
height: $plot-select-button-height;
padding-left: 10px;
border-radius: 3px;
cursor: pointer;
}

&-button {
height: $plot-select-button-height;
margin: 0.4em 1em;
}

&.disabled,
.disabled {
color: rgba(0, 0, 0, 0.4);
Expand Down
7 changes: 2 additions & 5 deletions benchexec/tablegenerator/react-table/src/utils/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ const renderSetting = (
**/
const renderResetButton = (resetHandler) => {
return (
<button
onClick={() => resetHandler()}
style={{ height: 25, margin: "0.4em 1em" }}
>
Reset Modifications
<button className="setting-button" onClick={() => resetHandler()}>
Reset plot
</button>
);
};
Expand Down

0 comments on commit 1db81bc

Please sign in to comment.