Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add table fidget #415

Open
wants to merge 28 commits into
base: canary
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3b55201
changed min-width and clean console.logs
sktbrd Aug 30, 2024
475e7e7
clean unused import
sktbrd Aug 30, 2024
f216c19
Links description Colors, replace avatar url
sktbrd Aug 30, 2024
e87db7f
Links input handling focus
sktbrd Aug 30, 2024
bca4e3f
should fix initial feed settings (#391)
j-paterson Sep 1, 2024
b30df17
Feed fix (#392)
j-paterson Sep 1, 2024
56b7d3c
link ⌐◨-◨ logo to @wtfisnouns space (#395)
sktbrd Sep 3, 2024
1ed504a
the whole link card is clicable now (#379)
sktbrd Sep 4, 2024
123a019
fix: Hydration error for space loading (#369)
glebovsky Sep 4, 2024
8b077b9
feat: add table fidget file
r4topunk Sep 4, 2024
9ba4961
feat: add csv parser and table display
r4topunk Sep 4, 2024
4d13b69
feat: add copy button
r4topunk Sep 4, 2024
46ca3c0
feat: add url selector
r4topunk Sep 6, 2024
e466fe7
refactor: organize imports
r4topunk Sep 6, 2024
e0f457c
Revert commit 56b7d3c
willyogo Sep 6, 2024
bd234c4
wip: Solves cast modal channel selector bug (#394)
r4topunk Sep 6, 2024
a1e4e06
style: update metadata image preview style (#365)
r4topunk Sep 6, 2024
3c52044
fix tabbar background and add tab button index (#403)
sktbrd Sep 9, 2024
3071ec8
video fidget and iframe fidget improvements (#402)
sktbrd Sep 9, 2024
d549adf
Rss fidget (#373)
sktbrd Sep 9, 2024
9e649a9
Added template library icon
j-paterson Sep 9, 2024
ee949a0
feat: add ethereum format function
r4topunk Sep 9, 2024
be1ff8a
feat: add fetch url
r4topunk Sep 9, 2024
6b9ea28
small copy change
willyogo Sep 9, 2024
66cd5c4
feat: add file read
r4topunk Sep 10, 2024
403eeaa
refactor: remove css field
r4topunk Sep 10, 2024
09f3f99
refactor: update styles to use tailwind
r4topunk Sep 10, 2024
e278596
Merge branch 'canary' into table-fidget
r4topunk Sep 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Hydration error for space loading (#369)
  • Loading branch information
glebovsky authored Sep 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 123a019765dc2251746bc694faf5bb975070574b
15 changes: 9 additions & 6 deletions src/common/components/templates/SpaceLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
import React, { ReactNode, useMemo } from "react";
import React, { ReactNode, useState, useEffect } from "react";
import { isUndefined } from "lodash";
import useWindowSize from "@/common/lib/hooks/useWindowSize";

export default function SpaceLoading({ profile }: { profile?: ReactNode }) {
const [rowHeight, setRowHeight] = useState(70);
const { height } = useWindowSize();
const maxRows = 12;
const cols = 12;
const margin = [16, 16];
const containerPadding = [16, 16];
const { height } = useWindowSize();
const rowHeight = useMemo(
() =>

useEffect(() => {
setRowHeight(
height
? Math.round(
// The 64 magic number here is the height of the tabs bar above the grid
(height - 64 - margin[0] * maxRows - containerPadding[0] * 2) /
maxRows,
)
: 70,
[height],
);
),
[height];
});

return (
<>
Expand Down