-
Notifications
You must be signed in to change notification settings - Fork 323
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: show feature info #461
feat: show feature info #461
Conversation
@rogaldh is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
const tableVariants = cva(["table table-sm card-table"], { | ||
defaultVariants: { | ||
layout: "compact" | ||
}, | ||
variants: { | ||
layout: { | ||
"compact": ["table-nowrap"], | ||
"expanded": [] | ||
} | ||
} | ||
}) | ||
|
||
export interface TableCardBodyProps extends VariantProps<typeof tableVariants>, React.PropsWithChildren {} | ||
|
||
export function TableCardBody({ children, ...props }: TableCardBodyProps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That code adds "variants" for the table. Original one contains table-nowrap
class that adds no-wrap
to all the cells.
For the feature we do not need this, as description might be quite long and with no-wrap
there will be a scroll. It's not very convenient.
That's why I've added additional variant (expanded
), which allows to not use no-wrap
and use it for all the needed cells.
All the previous tables won't be affected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for putting this together. Few nits
<ReactMarkdown remarkPlugins={[remarkGFM, remarkFrontmatter]}> | ||
{data} | ||
</ReactMarkdown> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to get the text color to match the existing default text color (white)? It's a little bit hard to read with the current gray color
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great. You were right about text-color: white -- too strong. I reset it to muted like you had.
I also made a modification so that the feature gate tab always shows for the feature gate. Before it would only show if the key was initialized on the current cluster. Can you just help update the feature account card so it always renders, even when the account doesn't exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fantastic. Thank you for the changes
Here is how new functionality looks like:


Variant for the feature without

simd_link
: