ramp4-pcar4 / story-ramp

Storytelling with interactive maps using RAMP
MIT License
4 stars 14 forks source link

Option for centered content #403

Closed dan-bowerman closed 5 months ago

dan-bowerman commented 7 months ago

The TCEI StoryMap project (https://storymaps.arcgis.com/stories/a4e825956b4a402ebe13dbceeba66321, reach out for credentials) demonstrates this well. image

A number of StoryMap products have a layout that is more centered than left or right aligned. I have seen this in one or two panel situations. Should this be a setting applied globally to the entire Storylines product? Or per slide?

Follow-up work to R.E.S.P.E.C.T. will need to be spun off from this once implemented.

RyanCoulsonCA commented 7 months ago

Panel content can be be centered using the customStyles attribute:

{
   ...
   "panel": [
      {
         "title": "Panel",
         "content": "..."
         "type": "text",
         "customStyles": "text-align: center;"
      }
   ]
   ...
}

Example:

Image