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

fix: inline field bug in Discord embed #511

Merged
merged 2 commits into from
Dec 1, 2024
Merged

Conversation

favna
Copy link
Member

@favna favna commented Nov 27, 2024

Fixes #509

Fix the issue with the bottom field not spanning across three inline fields in the embed.

favna and others added 2 commits December 1, 2024 13:56
Fixes #509

Fix the issue with the bottom field not spanning across three inline fields in the embed.

* Update `packages/core/src/components/discord-embed-field/DiscordEmbedField.ts` to set the `inline-index` attribute only when `inline` is true.
* Add a check in `packages/core/src/components/discord-embed-field/DiscordEmbedField.ts` to ensure `inline-index` is not set when `inline` is false.
* Update the grid column span logic in `packages/core/src/components/discord-embed-fields/DiscordEmbedFields.ts` to correctly span the bottom field across all three columns when `inline` is not set.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/skyra-project/discord-components/issues/509?shareId=XXXX-XXXX-XXXX-XXXX).
@favna favna force-pushed the favna/fix/inline-field-bug branch from be509e0 to e343800 Compare December 1, 2024 12:56
@favna favna merged commit 5b40150 into main Dec 1, 2024
6 checks passed
@favna favna deleted the favna/fix/inline-field-bug branch December 1, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: 3 inline then 1 out of line formats differently than Discord
1 participant