From 3499c61481bd6c5e9081814f959f38c5d0f5c68d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 9 Oct 2020 16:25:08 +0200 Subject: width of these elements --- .../app/views/viewer/sections/sections.css | 15 ++++-- .../views/viewer/sections/viewer.sections.nav.js | 58 ++++++++++++---------- 2 files changed, 44 insertions(+), 29 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/sections') diff --git a/animism-align/frontend/app/views/viewer/sections/sections.css b/animism-align/frontend/app/views/viewer/sections/sections.css index 9e3bcda..fd48f55 100644 --- a/animism-align/frontend/app/views/viewer/sections/sections.css +++ b/animism-align/frontend/app/views/viewer/sections/sections.css @@ -32,16 +32,22 @@ background: black; padding: 0; } +.sections-nav.viewer-nav > .nav-row > div { + width: auto; +} .sections-nav .link { position: relative; height: 3rem; padding: 0.25rem 1rem 0.25rem 0.25rem; } +.sections-nav .credits-link { + border-left: 1px solid white; +} .sections-nav .subscribe-link { - border-right: 1px solid white; + border-left: 1px solid white; } .sections-nav .share-link { - border-right: 1px solid white; + border-left: 1px solid white; } .sections-nav .footnotes-link { border-left: 1px solid white; @@ -50,8 +56,11 @@ padding-left: 1rem; border-left: 1px solid white; } -.sections-nav .checklist-element { +.sections-nav > .nav-row > div.credits-element, +.sections-nav > .nav-row > div.checklist-element { cursor: pointer; + flex: 1; + justify-content: flex-start; } /* scrolling part */ diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.nav.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.nav.js index 1825732..f4162ba 100644 --- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.nav.js +++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.nav.js @@ -14,40 +14,46 @@ class ViewerSectionsNav extends Component { return (
-
-
- - actions.viewer.showNavComponent('share')}> - - {'Share'} - -
-
- - actions.viewer.showNavComponent('subscribe')}> - - {'Subscribe'} - -
-
+
actions.viewer.toggleNavComponent('checklist')}>
{'Checklist'}
-
-
- actions.viewer.showNavComponent('footnotes')}> - - {'Notes'} - -
-
actions.viewer.openTranscript()}> - {'Transcript'} + +
actions.viewer.toggleNavComponent('credits')}> +
+ + {'Credits'}
-
+ +
+ + actions.viewer.showNavComponent('subscribe')}> + + {'Subscribe'} + +
+
+ + actions.viewer.showNavComponent('share')}> + + {'Share'} + +
+
+ actions.viewer.showNavComponent('footnotes')}> + + {'Notes'} + +
+
actions.viewer.openTranscript()}> + {'Transcript'} +
+ +
) -- cgit v1.2.3-70-g09d2