Replies: 4 comments 12 replies
-
|
I'll see if I can reproduce this exact issue where the Quarto layouts aren't preserved when running as the shiny app. In the meantime, have you tried modifying the size of the questions themselves? |
Beta Was this translation helpful? Give feedback.
-
|
I did some testing using the custom grid values, and I do see differences appear on the rendered survey. For example, when I use this: ---
format:
html:
grid:
sidebar-width: 500px
body-width: 400px
margin-width: 300px
gutter-width: 1.5rem
echo: false
warning: false
---I get a less wide overall body width, but if I change So it seems there is still some max width value that is being set that doesn't respect the same layout as the Quarto layout settings. Internally, what we're doing is actually rendering the survey.qmd file, then parsing it for the survey html content. In that process, some of the styling must be getting lost, which is related to #234 on the brand.yml settings. We can keep looking into it, though there may be limits to how much everything transfers into Shiny. The resulting Shiny app may not be able to perfectly preserve the same layout as the static html page that gets rendered. |
Beta Was this translation helpful? Give feedback.
-
|
Other than the Quarto page layout, one possible way to handle the column widths in question type "matrix" is to use the Here's a simple app that shows the result: |
Beta Was this translation helpful? Give feedback.
-
|
We've now merged our latest round of edits. We have released this as v1.0.0 as with these changes the overall UI is now pretty stable. So if you want to work from a copy of the main branch, now would be a good time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I noticed that the following had no effect on the survey output when specified in survey.qmd:
Rendering just the
survey.qmddoes show the layout is applied but the running app does not show the same layout.Beta Was this translation helpful? Give feedback.
All reactions