提交 d3c8e64c 编写于 作者: M Matt Bierner

use single line and underline clickable part

上级 f704154e
......@@ -160,15 +160,18 @@ export class ResourceViewer {
} else {
$(container)
.empty()
.append($('p', {
text: nls.localize('largeImageError', "The image is too large to display in the editor.")
}))
.p({
text: nls.localize('largeImageError', "The image is too large to display in the editor. ")
})
.append($('a', {
role: 'button',
class: 'open-external',
text: nls.localize('resourceOpenExternal', "Try opening the image using an external program?")
text: nls.localize('resourceOpenExternalButton', "Open image")
}).on(DOM.EventType.CLICK, (e) => {
openExternal(descriptor.resource);
}))
.append($('span', {
text: nls.localize('resourceOpenExternalText', ' using external program?')
}));
}
}
......
......@@ -52,4 +52,5 @@
.monaco-resource-viewer .open-external,
.monaco-resource-viewer .open-external:hover {
cursor: pointer;
text-decoration: underline;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册