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

Cascade truncated #103

Closed
eboileau opened this issue May 24, 2024 · 5 comments
Closed

Cascade truncated #103

eboileau opened this issue May 24, 2024 · 5 comments
Assignees
Labels
stack:frontend Frontend (FE) related type:bug Something isn't working
Milestone

Comments

@eboileau
Copy link
Collaborator

eboileau commented May 24, 2024

A clear and concise description of what the bug is.

The technology now appears truncated in FormCascade in ProjectMetadata.vue

meta

@eboileau eboileau added type:bug Something isn't working stack:frontend Frontend (FE) related labels May 24, 2024
@eboileau eboileau added this to the First release milestone May 24, 2024
@eboileau eboileau self-assigned this May 24, 2024
@HaraldWilhelmi
Copy link

First look at it:

  • The size seems to be tagged to ul element ariund the list via the class sm:w-48.
  • That one says: "width: 12rem;". If that setting is disabled manually in the browser the element becomes huge.
  • Most likely we want "width: fit-content;" instead.

@HaraldWilhelmi
Copy link

While this should be trivial to fix with classic CSS the PrimVue component seems not to support it.
There seems to be something called "panel", which is either only used for the first level of pull down menus
(which we don't want to change!) or all of them.

@eboileau
Copy link
Collaborator Author

Ok, I can have a look next week. This is typically handled with this pt property. In our case, we also have defined presets (/client/src/presets/windscm/).

@HaraldWilhelmi
Copy link

Already tried pretty much everything with PassThrough - but it just did not do anything for me (style, class, as string, as object ...)

@eboileau
Copy link
Collaborator Author

The element to pass to pt is sublist: { class: 'w-full sm:w-80' } in FormCascade.vue, whereas the preset has 'w-full sm:w-48'. This also makes the cascade a bit longer in general e.g. for organism in dataset upload, but I think we just leave it for now, and go back to it in Q3 when harmonizing styles throughout, see #99.

eboileau added a commit that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stack:frontend Frontend (FE) related type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants