Compare commits
2 commits
5a274de64f
...
fdeab38203
| Author | SHA1 | Date | |
|---|---|---|---|
| fdeab38203 | |||
| f01cf0fbe0 |
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<TitleBar :title="title_html" />
|
||||
<HelloWorld />
|
||||
</v-main>
|
||||
<TickerBar :content="ticker_html" />
|
||||
<TickerBar v-if="ticker_html !== ''" :content="ticker_html" />
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export default class TickerBar extends Vue {
|
|||
@Prop({ required: true })
|
||||
private readonly content!: string;
|
||||
|
||||
get marqueeDuration(): string {
|
||||
private 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