diff --git a/src/view/com/home/TileBoard/index.tsx b/src/view/com/home/TileBoard/index.tsx
index 94a56c0ee..faac98e75 100644
--- a/src/view/com/home/TileBoard/index.tsx
+++ b/src/view/com/home/TileBoard/index.tsx
@@ -24,7 +24,7 @@ import * as Layout from '#/components/Layout'
import {SortableGrid} from '#/components/SortableGrid'
import {Text} from '#/components/Typography'
import {IS_WEB} from '#/env'
-import {deriveTileSpan, layoutHeight, packLayout, type TileSpan} from './layout'
+import {deriveTileSpan, layoutHeight, packLayout} from './layout'
const TILE_GAP = 8
const TILE_HEIGHT = 160
@@ -96,121 +96,140 @@ export function TileBoard({
return (
-
- setBoardWidth(event.nativeEvent.layout.width)}
- />
- {IS_WEB && !isEditing && (
-
-
-
- Edit
-
-
-
- )}
- {isEditing && (
-
-
-
- Add a tile
-
-
- setIsEditing(false)}
- style={[a.rounded_full, a.px_md, a.py_sm, t.atoms.bg_contrast_25]}>
-
- Done
-
-
-
- )}
-
- feed.savedFeed.id}
- spanExtractor={(feed, index) => deriveTileSpan(index, feed)}
- editable={isEditing}
- colW={colW + TILE_GAP}
- rowH={rowH + TILE_GAP}
- scrollRef={scrollRef}
- scrollOffset={scrollOffset}
- onReorder={onReorderFeeds}
- onDragStart={() => setIsDragging(true)}
- onDragEnd={() => setIsDragging(false)}
- renderItem={(feed, index) => (
- f.savedFeed.id === feed.savedFeed.id) <
- 4 || firstBatchDone
- }
- onPress={() => {
- if (!isEditing) onSelectFeed(feed)
- }}
- onPressVideo={postUri => {
- if (!isEditing) onSelectVideo(feed, postUri)
- }}
- onLongPress={() => {
- if (!IS_WEB) setIsEditing(true)
- }}
- onUnpin={() => onUnpinFeed(feed)}
- />
+ ref={scrollRef}
+ style={a.flex_1}
+ scrollEnabled={!isDragging}
+ contentContainerStyle={[a.pt_md, a.pb_3xl]}>
+
+ setBoardWidth(event.nativeEvent.layout.width)}
+ />
+ {IS_WEB && !isEditing && (
+
+
+
+ Edit
+
+
+
)}
- />
- {showDiscovery && (
-
-
- Find feeds
-
-
- Explore more feeds to pin here.
-
-
- )}
-
-
-
+ {isEditing && (
+
+
+
+ Add a tile
+
+
+ setIsEditing(false)}
+ style={[
+ a.rounded_full,
+ a.px_md,
+ a.py_sm,
+ t.atoms.bg_contrast_25,
+ ]}>
+
+ Done
+
+
+
+ )}
+
+ feed.savedFeed.id}
+ spanExtractor={(feed, index) => deriveTileSpan(index, feed)}
+ editable={isEditing}
+ colW={colW + TILE_GAP}
+ rowH={rowH + TILE_GAP}
+ scrollRef={scrollRef}
+ scrollOffset={scrollOffset}
+ onReorder={onReorderFeeds}
+ onDragStart={() => setIsDragging(true)}
+ onDragEnd={() => setIsDragging(false)}
+ renderItem={feed => (
+ f.savedFeed.id === feed.savedFeed.id) <
+ 4 || firstBatchDone
+ }
+ onPress={() => {
+ if (!isEditing) onSelectFeed(feed)
+ }}
+ onPressVideo={postUri => {
+ if (!isEditing) onSelectVideo(feed, postUri)
+ }}
+ onLongPress={() => {
+ if (!IS_WEB) setIsEditing(true)
+ }}
+ onUnpin={() => onUnpinFeed(feed)}
+ />
+ )}
+ />
+ {showDiscovery && (
+
+
+ Find feeds
+
+
+ Explore more feeds to pin here.
+
+
+ )}
+
+
+
)
}
function Tile({
feed,
- span,
isEditing,
enabled,
onPress,
@@ -219,7 +238,6 @@ function Tile({
onUnpin,
}: {
feed: SavedFeedSourceInfo
- span: TileSpan
isEditing: boolean
enabled: boolean
onPress: () => void
@@ -252,21 +270,11 @@ function Tile({
marginBottom: TILE_GAP,
},
]}>
- {span === 1 ? (
-
-
-
- {feed.displayName}
-
-
- ) : (
-
- {feed.displayName}
-
- )}
+
+ {feed.displayName}
+
void
@@ -327,35 +333,6 @@ function TilePreview({
)
}
- if (span === 1) {
- const authors = Array.from(
- new Map(
- (query.data ?? []).map(post => [post.author.did, post.author]),
- ).values(),
- ).slice(0, 3)
- return (
-
-
- {authors.map((author, index) => (
-
-
-
- ))}
-
-
- )
- }
if (feed.contentMode === AppBskyFeedDefs.CONTENTMODEVIDEO) {
const videoPosts = (query.data ?? []).filter(p =>
AppBskyEmbedVideo.isView(p.embed),