feat: make RSS feed scrollable (#10108)

This commit is contained in:
freeplay 2023-06-25 18:33:13 -04:00
parent 661d7bc751
commit 1327052ef0

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,