Fix metadata rendering with long texts

This commit is contained in:
Anders Rune Jensen
2018-01-11 00:26:45 +01:00
parent e3788ada87
commit 2d14256b09
+4 -2
View File
@@ -265,12 +265,14 @@ var styles = `
padding: 5px; padding: 5px;
border-radius: 3px; border-radius: 3px;
position: relative; position: relative;
overflow: hidden;
text-overflow: ellipsis;
} }
pre::before { pre::before {
content: "METADATA"; content: "METADATA";
position: absolute; position: absolute;
top: -7px; top: -3px;
left: 0px; right: 0px;
background-color: #212529; background-color: #212529;
padding: 2px 4px 0; padding: 2px 4px 0;
border-radius: 2px; border-radius: 2px;