[READ-ONLY] Mirror of https://github.com/probablykasper/kadium. App for staying ontop of YouTube channels' uploads kadium.kasper.space
linux macos notifications tauri windows youtube
0

Configure Feed

Select the types of activity you want to include in your feed.

Scroll to bottom after adding channel

Kasper (Nov 19, 2023, 10:45 AM +0100) c10851a4 d0fdc6e7

+14 -2
+1
CHANGELOG.md
··· 3 3 ## Next 4 4 - Fix some errors not being shown 5 5 - Fix notification identifiers 6 + - Scroll to bottom after adding channel 6 7 7 8 ## 1.4.4 - 2023 Apr 3 8 9 - Fix blank screen
+2
src/modals/Channel.svelte
··· 13 13 14 14 export let channels: Channel[] 15 15 export let visible = false 16 + export let on_add: () => void 16 17 17 18 let url = '' 18 19 let fromTime: Date | null ··· 46 47 }) 47 48 await loadSettings() 48 49 visible = false 50 + on_add() 49 51 } else { 50 52 channels[editIndex].from_time = Math.round(fromTime.getTime()) 51 53 channels[editIndex].refresh_rate_ms = Math.round(refreshRateMinutes * 60 * 1000)
+11 -2
src/routes/Channels.svelte
··· 54 54 const unlisten = await unlistenFuture 55 55 unlisten() 56 56 }) 57 + 58 + let channels_scroll_el: HTMLDivElement 57 59 </script> 58 60 59 - <ChannelModal {channels} bind:editIndex bind:visible={editVisible} /> 61 + <ChannelModal 62 + {channels} 63 + bind:editIndex 64 + bind:visible={editVisible} 65 + on_add={() => { 66 + channels_scroll_el.scrollTo({ behavior: 'smooth', top: channels_scroll_el.scrollHeight }) 67 + }} 68 + /> 60 69 61 70 <main> 62 71 <header> ··· 72 81 {visibleIndexes.length} of {channels.length} 73 82 </div> 74 83 </header> 75 - <div class="channels"> 84 + <div bind:this={channels_scroll_el} class="channels"> 76 85 {#each channels as channel, i} 77 86 <div class="channel selectable" class:show={filter === '' || channel.name.includes(filter)}> 78 87 <img src={channel.icon} alt="" />