Added support for hero text

This commit is contained in:
Martin Donath
2017-11-22 00:13:56 +01:00
committed by GitHub
parent 50d69fd428
commit f033fd5437
22 changed files with 244 additions and 86 deletions

View File

@@ -78,7 +78,7 @@ export default class Title {
this.el_.dataset.mdState = (this.active_ = active) ? "active" : ""
/* Hack: induce ellipsis on topics */
if (ev.type === "resize") {
if (ev.type === "resize" || ev.type === "orientationchange") {
Array.prototype.forEach.call(this.el_.children, node => {
node.style.width = `${this.el_.offsetWidth - 20}px`
})