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

Avoid margin when no title #558

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Avoid margin when no title #558

merged 3 commits into from
Jan 10, 2025

Conversation

mstrasinskis
Copy link
Contributor

Motivation

On the neuron details page, the voting power block needs to be displayed within a collapsible section. To achieve this, we can’t use the section’s title slot and must instead rely on a custom title (within the KeyValuePairInfo) placed in the section’s description block. Currently, if the title slot is left empty, an extra margin is added, which is undesirable.

image

Changes

  • Do not add the margin, when no title provided.

  • Tested locally against nns-dapp.

Screenshots

image

@mstrasinskis mstrasinskis requested review from a team as code owners January 9, 2025 17:15
upload-artifacts@v3 -> v4
@mstrasinskis mstrasinskis mentioned this pull request Jan 9, 2025
.github/workflows/checks.yml Outdated Show resolved Hide resolved
src/lib/components/Section.svelte Show resolved Hide resolved
mstrasinskis added a commit that referenced this pull request Jan 10, 2025
actions/upload-artifact@v3 to v4


# Motivation

Github checks fails with:
`Error: This request has been automatically failed because it uses a
deprecated version of `actions/upload-artifact: v3`. Learn more:
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/`


https://github.com/dfinity/gix-components/actions/runs/12695076227/job/35386237271?pr=558

# Changes

- Update the artifact-actions to v4.

# Tests

- Applied same changes to a branch to test that it's green again -
#558
@mstrasinskis mstrasinskis requested a review from yhabib January 10, 2025 11:11
@mstrasinskis mstrasinskis merged commit 6ba302b into main Jan 10, 2025
9 checks passed
@mstrasinskis mstrasinskis deleted the section-no-title branch January 10, 2025 13:30
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.

2 participants