Skip to content

Text field wrapping in index #6073

Closed Answered by ekazda
schonhoff asked this question in Ideas & Feature Requests
Sep 28, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

@schonhoff Here is the solution I implemented. I simply fixed this with CSS. I had already added my own CSS file, implemented Tailwind and a build process. Here is the CSS code I used:

.component-resource-index.resource-[YOUR RESOURCE NAME] {
    .field-[YOUR FIELD NAME] {
        span {
            @apply !whitespace-normal;
        }
    }
}

If you need this in vanilla CSS, it would look like this:

.component-resource-index.resource-[YOUR RESOURCE NAME] .field-[YOUR FIELD NAME] span{ white-space: normal !important; }

Now the HTML markup in Nova is hard to work with. Very few classes exist when you get deeper into elements, so sometimes you have to do a lot of digging through div after…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@schonhoff
Comment options

@laravelwebdev
Comment options

@ekazda
Comment options

Comment options

You must be logged in to vote
1 reply
@schonhoff
Comment options

Answer selected by schonhoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending Issues that are pending triage
4 participants
Converted from issue

This discussion was converted from issue #5917 on November 28, 2023 19:27.