feat: make RSS feed scrollable (#10108)

This commit is contained in:
freeplay 2023-06-25 18:33:13 -04:00
parent cc1b34d3e5
commit 5fcbf699ff
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,10 @@
<template> <template>
<MkContainer :show-header="widgetProps.showHeader" class="mkw-rss"> <MkContainer
:show-header="widgetProps.showHeader"
class="mkw-rss"
:scrollable="true"
:style="`height: ${widgetProps.height}px;`"
>
<template #header><i class="ph-rss ph-bold ph-lg"></i>RSS</template> <template #header><i class="ph-rss ph-bold ph-lg"></i>RSS</template>
<template #func <template #func
><button class="_button" @click="configure"> ><button class="_button" @click="configure">
@ -44,6 +49,10 @@ const widgetPropsDef = {
type: "string" as const, type: "string" as const,
default: "http://feeds.afpbb.com/rss/afpbb/afpbbnews", default: "http://feeds.afpbb.com/rss/afpbb/afpbbnews",
}, },
height: {
type: "number" as const,
default: 300,
},
showHeader: { showHeader: {
type: "boolean" as const, type: "boolean" as const,
default: true, default: true,