Skip to content

Commit

Permalink
Request url tooltip overflow (#1441)
Browse files Browse the repository at this point in the history
* Fixed test for win32

* Allow for a wide tag + styling to allow breaking of an otherwise unbreakable string

* reverted test

* added package-lock.json files
  • Loading branch information
develohpanda authored and gschier committed Apr 22, 2019
1 parent cb975f8 commit 497a708
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 5,013 deletions.
92 changes: 67 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/insomnia-app/app/ui/components/tags/url-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class URLTag extends React.PureComponent<Props> {

return (
<div className={classnames('tag', { 'tag--small': small }, className)}>
<Tooltip message={url} position="bottom">
<Tooltip wide message={url} position="bottom">
<strong>{method || 'URL'}</strong> {shortUrl}
</Tooltip>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/insomnia-app/app/ui/css/components/tooltip.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
text-align: center;
z-index: 10;
white-space: normal !important;
word-wrap: break-word;

&.tooltip__bubble--visible {
opacity: 1;
Expand Down
Loading

0 comments on commit 497a708

Please sign in to comment.