Skip to content

Commit

Permalink
Bolder markdown in textbox (getredash#3686)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena authored and harveyrendell committed Nov 14, 2019
1 parent bcea23f commit c382d77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions client/app/assets/less/redash/redash-newstyle.less
Original file line number Diff line number Diff line change
Expand Up @@ -871,4 +871,8 @@ text.slicetext {
.table-data .label-tag {
display: inline-block;
max-width: 135px;
}

.markdown strong {
font-weight: bold;
}
2 changes: 1 addition & 1 deletion client/app/components/dashboards/TextboxDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class TextboxDialog extends React.Component {
<strong className="preview-title">Preview:</strong>
<p
dangerouslySetInnerHTML={{ __html: this.state.preview }} // eslint-disable-line react/no-danger
className="preview"
className="preview markdown"
/>
</React.Fragment>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/dashboards/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ <h1><span class="zmdi zmdi-lock"></span></h1>
</ul>
</div>
</div>
<div class="body-row-auto scrollbox tiled t-body p-15" ng-bind-html="$ctrl.widget.text | markdown"></div>
<div class="body-row-auto scrollbox tiled t-body p-15 markdown" ng-bind-html="$ctrl.widget.text | markdown"></div>
</div>
</div>

0 comments on commit c382d77

Please sign in to comment.