Compare commits
No commits in common. "fdeab38203b0f09a96b37e5bb65ef900f7916675" and "5a274de64f66528ef2d7ae5c1e2c72eb2ee9b448" have entirely different histories.
fdeab38203
...
5a274de64f
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<TitleBar :title="title_html" />
|
||||
<HelloWorld />
|
||||
</v-main>
|
||||
<TickerBar v-if="ticker_html !== ''" :content="ticker_html" />
|
||||
<TickerBar :content="ticker_html" />
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export default class TickerBar extends Vue {
|
|||
@Prop({ required: true })
|
||||
private readonly content!: string;
|
||||
|
||||
private get marqueeDuration(): string {
|
||||
get marqueeDuration(): string {
|
||||
// 10 seconds + another second per 7 chars
|
||||
let dv = this.content ? Math.round(this.content.length / 7) : 0;
|
||||
return 10 + dv + "s";
|
||||
|
|
|
|||
Loading…
Reference in a new issue