Skip to content

Commit

Permalink
Pull request: 4776 add word break for query log domains
Browse files Browse the repository at this point in the history
Updates AdguardTeam#4776

Squashed commit of the following:

commit 6f1778f
Merge: 753bd44 053bb72
Author: Ildar Kamalov <ik@adguard.com>
Date:   Tue Aug 2 11:52:07 2022 +0300

    Merge branch 'master' into 4776-domains

commit 753bd44
Author: Ildar Kamalov <ik@adguard.com>
Date:   Mon Aug 1 16:58:07 2022 +0300

    client: add word break for query log domains
  • Loading branch information
IldarKamalov authored and heyxkhoa committed Mar 17, 2023
1 parent 23034e9 commit 7abbf6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Logs/Cells/DomainCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ const DomainCell = ({
/>
<div className={valueClass}>
{unicodeName ? (
<div className="text-truncate" title={unicodeName}>
<div className="text-truncate overflow-break-mobile" title={unicodeName}>
{unicodeName}
</div>
) : (
<div className="text-truncate" title={domain}>
<div className="text-truncate overflow-break-mobile" title={domain}>
{domain}
</div>
)}
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/Logs/Cells/IconTooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
overflow-wrap: break-word;
}

@media (max-width: 991.98px) {
.overflow-break-mobile {
white-space: normal !important;
overflow-wrap: break-word;
}
}

.grid {
display: grid;
grid-template-columns: repeat(2, min-content);
Expand Down

0 comments on commit 7abbf6c

Please sign in to comment.