Skip to content

Commit

Permalink
Work for #5551 - Implement TOC navigation - fixed react top bar style
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Feb 21, 2023
1 parent 0ba5f1c commit 4467a7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/react/reactSurveyProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ export class SurveyProgress extends SurveyNavigationBase {
return this.survey.progressText;
}
render(): JSX.Element {
var style = this.isTop ? {} : { marginTop: "1em" };
var progressStyle = {
width: this.progress + "%",
};
return (
<div className={this.survey.getProgressCssClasses()} style={style}>
<div className={this.survey.getProgressCssClasses()}>
<div
style={progressStyle}
className={this.css.progressBar}
Expand Down

0 comments on commit 4467a7a

Please sign in to comment.