feat: make RSS feed scrollable (#10108)

This commit is contained in:
freeplay 2023-06-25 18:33:13 -04:00
parent cc1b34d3e5
commit 5fcbf699ff

View file

@ -1,5 +1,10 @@
<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 #func
><button class="_button" @click="configure">
@ -44,6 +49,10 @@ const widgetPropsDef = {
type: "string" as const,
default: "http://feeds.afpbb.com/rss/afpbb/afpbbnews",
},
height: {
type: "number" as const,
default: 300,
},
showHeader: {
type: "boolean" as const,
default: true,