Skip to content

Commit

Permalink
fix(docbot): feedback tooltip ui style (#3978)
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Nov 23, 2021
1 parent fec0d42 commit c7bbd30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions docs/_static/docbot.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,17 @@
}

.feedback-tooltip {
bottom: -20px;
position: absolute;
left: 20px;
bottom: -20px;
position: absolute;
left: 20px;

display: flex;
justify-content: space-between;
width: calc(100% - 20px - 12px)
}

.answer-reference {
white-space: nowrap;
}

.answer-reference:after {
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/docbot.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
target="_blank">Report</a>
<div v-if="qa.answer && !is_conn_broken && qa.answer.uri" class="feedback-tooltip sd-d-flex-row">
<a class="answer-reference" :href="root_url + qa.answer.uri">Source</a>
<div class="sd-d-flex-row" style="margin-left: 40px">
<div class="sd-d-flex-row">
<div class="thumb-answer thumbup" v-show="qa.rating===null" style="margin: 0 6px" v-on:click="submit_rating(qa, true)">
<svg aria-hidden="true" class="sd-octicon sd-octicon-thumbsup" height="1.0em"
version="1.1" viewBox="0 0 16 16" width="1.0em">
Expand Down

0 comments on commit c7bbd30

Please sign in to comment.