mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
Bug 1360548 - Adapt dimension of broken image tooltip to content. r=jdescottes
This commit is contained in:
1 parent
62228fe3e1
commit
8c6794de16
2 files changed
+2
-3
No files matched your search
@@ -132,7 +132,7 @@ function setBrokenImageTooltip(tooltip, doc) {
|
||||
div.className = "theme-comment devtools-tooltip-image-broken";
|
||||
let message = L10N.getStr("previewTooltip.image.brokenImage");
|
||||
div.textContent = message;
|
||||
tooltip.setContent(div, {width: 150, height: 30});
|
||||
tooltip.setContent(div);
|
||||
}
|
||||
|
||||
module.exports.getImageDimensions = getImageDimensions;
|
||||
|
||||
@@ -452,6 +452,5 @@
|
||||
.devtools-tooltip-image-broken {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
padding: 7px;
|
||||
}
|
||||
Reference in new issue
Block a user