Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Definition of slider card margin should be dynamically defined #860

Description

@briankalwat

The margin values that are defined here should probably be dynamically generated from Junction so that they will always be consistent with the system as a whole.

https://github.com/NewSpring/Apollos/blob/master/sites/newspring/imports/pages/series/series.VideoList.jsx#L47

if (typeof window != "undefined" || window != null) {
      let itemSize = (window.innerWidth - 40) * 0.8; // four-fifths
      itemSize += 20; // account for margin
      const items = this.props.sermons.content.sermons.length;
      const width = (items * itemSize) + 40;
      return {
        width: `${width}px`
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions