adaptlearning / adapt-contrib-narrative

A component that displays an image gallery with accompanying text
GNU General Public License v3.0
5 stars 39 forks source link

ItemsComponentModel #179

Closed lc-thomasberger closed 6 years ago

lc-thomasberger commented 6 years ago

use ItemsComponentModel improve animation performance

lc-thomasberger commented 6 years ago

requires these changes in the Framework

tomgreenfield commented 6 years ago

Is there meant to be a visited state?

lc-thomasberger commented 6 years ago

@tomgreenfield done

chucklorenz commented 6 years ago

.narrative-item-title appears in narrative.less, but I cannot find it in narrative.hbs. Is it supposed to be .narrative-content-title?

moloko commented 6 years ago

also just to check whether this PR will require a fix for https://github.com/adaptlearning/adapt_framework/issues/2100

moloko commented 6 years ago

FYI tested in FF and IE11, checked that:

all work OK

moloko commented 6 years ago

Sorry @lc-thomasberger but it looks like something's gone a bit wrong with the _hasNavigationInTextArea layout following that last set of updates: _hasnavigationintextarea

lc-thomasberger commented 6 years ago

@moloko it is this line in the theme https://github.com/adaptlearning/adapt-contrib-vanilla/blob/master/less/src/narrative.less#L44

moloko commented 6 years ago

@lc-thomasberger OK so from what I can see it's this which is overriding this in the theme.

For reference, this is how it how it looks in the current version of narrative when "_hasNavigationInTextArea": true: 2018-06-21 18_18_34-adapt version 3 0 demonstration _ presentation components

(As I recall, it was decided that we'd have the .narrative-controls beneath the .narrative-indicators so that you could fit more narrative items in when using this layout)

So I think all that needs to be done is to remove these lines and we're then back to the same layout we have currently.