Skip to content

Commit c3b54e0

Browse files
committed
Fix: table asset render from creatable
1 parent a27a24b commit c3b54e0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ui/src/ControllerCreate.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ let disabled = true
5353
//const hrlB64 = weaveUrlFromWal(attachToWAL)
5454
const board = await Board.Create(synStore, {/*boundTo:[hrlB64]*/name: inputElement.value})
5555
const dnaHash = await getMyDna(roleName, client)
56-
view.resolve({hrl:[dnaHash, board.hash]})
56+
view.resolve({hrl:[dnaHash, board.hash], context: {assetType: "Table"}})
5757
} catch(e) {
5858
console.log("ERR",e)
5959
view.reject(e)

ui/src/RowDetails.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
}
8787
8888
const walToPocket = () => {
89-
const attachment: WAL = { hrl: [store.dnaHash, $activeBoard.hash], context: rowId }
89+
const attachment: WAL = { hrl: [store.dnaHash, $activeBoard.hash], context: {
90+
assetType: "TableRow",
91+
assetId: encodeHashToBase64(rowId),
92+
}, }
9093
store.weClient?.assets.assetToPocket(attachment)
9194
}
9295

ui/src/TablePane.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,8 @@
859859
overflow-x: auto;
860860
width: 100%;
861861
position: relative;
862-
max-height: calc(100vh - 50px);
862+
height: calc(100vh - 92px);
863+
border-bottom: 1px solid #a1a1a1;
863864
}
864865
.top-bar {
865866
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);

0 commit comments

Comments
 (0)