microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
390 stars 341 forks source link

Grid possibility for adaptive cards #3720

Open KbWorks opened 7 months ago

KbWorks commented 7 months ago

I thought to use adaptive cards in a grid view so first I designed the card in the adaptive card website. The result was that all the cards were under each other instead of what I expected to be next to each other. Then I discussed this with Fabio Franzini and we both concluded that it is not possible at this moment.

So my request for the adaptive cards view would be the following: Add the adaptive card designer of Fabio to the tooling he has got a great control. and second I would like to see a toggle where I can select if I want adaptive cards to be responsive to the screen so they come next to each other instead of underneath each other.

I think the adaptive cards are a more simple way for most users to use when working with PnP modern search.

fabiofranzini commented 7 months ago

I'm adding my two cents... Currently, architecture dictates that the Adaptive Card definition is the one that defines the entire result display and not just the display of the individual item that is part of the result. This leads to the problem described above, which is the inability to have a responsive grid simply because Adaptive Cards do not support it. What would be needed, for rendering with Adaptive Cards, is the ability to define the template just for the individual result and then be able to select how to display all the results, i.e., as a list, as a grid, etc., etc. This would partially bypass the problem of complex layouts with Adaptive Cards in PnP Modern Search.

kasperbolarsen commented 7 months ago

Why does this sound familiar....like the Item and Control templates from classic search 🤔 I agree, that sounds like a good approach. Now, who can make that PR?