Pricing Blog

Toast width does not adapt fully?

  • ssssadsadasd-1320131781164531773

    ssssadsadasd

    5 months ago

    When the content is long the toast does not adapt to the width.
    1320131781453676574-image.png
  • chrislaupama-1320133655837937784

    Chris Laupama

    5 months ago

    Set the toast width to ‘fit-content’ ensure that no parent element has a specific width either
  • ssssadsadasd-1320134206482944101

    ssssadsadasd

    5 months ago

    @Chris Laupama hmm not sure how can I set the width = fit-content. it has only three attributes and you cannot edit it since it is from a plugin
    1320134206273224776-image.png
  • chrislaupama-1320136668618948812

    Chris Laupama

    5 months ago

    Oh I see you’re using a component
  • jacobkofoed-1320346252956925964

    Jacob Kofoed

    5 months ago

    I think the toast action lets you add a style object. You could try to set { “width: “fit-content} there 🤔

    Anyways, I’ll add a task to make the toast handle longer messages better in the future.