TVML 中 compilationTemplate 的 relatedContent 区域中的换行描述文本

Line Wrap description text in a compilationTemplate's relatedContent area in TVML

如何将 description 文本换行到 compilationTemplaterelatedContent 区域?

我的 description 标签:

<description style="tv-text-style: none; font-size:36; font-weight:regular; word-wrap:break-word;">lorem ipsum dolor sit amet consectetur adipiscing elit</description>

完整模板:

var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?>
    <document>
        <compilationTemplate theme="light">
            <list>
                <relatedContent>
                    <itemBanner>
                        <heroImg src="${this.BASEURL}images/shows/bates/BRANDHD2398_AEN_BATE_168121_TVE_000_2398_60_20160303_00_S3_REV_HD_1920x1080-16x9.jpg" />
                        <description style="tv-text-style: none; font-size:36; font-weight:regular; word-wrap:break-word;">lorem ipsum dolor sit amet consectetur adipiscing elit</description>
                    </itemBanner>
                </relatedContent>
                <header>
                    <title>Bates Motel</title>
                    <subtitle>Season 4</subtitle>
                </header>
                <section>
                    <listItemLockup>
                        <ordinal minLength="2">1</ordinal>
                        <title>A Danger to Himself and Others</title>
                        <decorationLabel>11:14</decorationLabel>
                    </listItemLockup>
                    < !-- ... -- >
                </section>
            </list>
        </compilationTemplate>
    </document>`
}

文本大小发生变化,但描述被截断而不是换行。

修改预定义描述区min-heightmax-height样式?tv-text-max-lineshttps://github.com/iBaa/PlexConnectApp/blob/master/PlexConnectApp/TVMLTemplates/Fanart/Movie_PrePlay.xml 中的示例,参见 class description 和以后的用法。

(2016 年 4 月 14 日根据评论和仔细检查编辑)