mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-23 22:56:08 +09:00
feat: make RSS feed scrollable (#10108)
This commit is contained in:
parent
661d7bc751
commit
1327052ef0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user