Skip to content

Commit

Permalink
fix: text overflow on snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rutujaac committed Sep 2, 2024
1 parent 75d6238 commit 2b08de1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pebblo/app/pebblo-ui/src/components/snippetDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Tooltip } from "./tooltip.js";

function DisplaySnippet(props) {
const { formattedString } = props;
return `<div>
return `<div class="word-wrap-break">
${formattedString.myMap((item, index) =>
item?.score
? Tooltip({
Expand Down
4 changes: 4 additions & 0 deletions pebblo/app/pebblo-ui/static/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,10 @@ dialog::backdrop {
border: 1px solid#D8D9E380;
}

.word-wrap-break {
word-wrap: break-word;
}

/* TOOLTIP */

.tooltip-wrapper {
Expand Down

0 comments on commit 2b08de1

Please sign in to comment.