-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle navibar on mobile #190
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,12 @@ | |
|
||
<div id="app" class="app-deck" data-ng-app="Deck" ng-controller="AppController" ng-cloak> | ||
|
||
<div id="app-navigation" data-ng-controller="ListController" ng-init="initSidebar()" ng-if="navibar.show"> | ||
<div id="app-navigation" data-ng-controller="ListController" ng-init="initSidebar()"> | ||
<?php print_unescaped($this->inc('part.navigation')); ?> | ||
<?php /* print_unescaped($this->inc('part.settings')); */ ?> | ||
</div> | ||
<div id="app-content" ng-class="{ 'details-visible': sidebar.show }" ui-view> | ||
<div id="app-content" ng-class="{ 'details-visible': sidebar.show }"> | ||
<div ui-view></div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you need additional There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. otherwise it doesn't work with core-functions There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. which function exactly? I tested locally and didn't find any errors. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the toggle button will be created by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we create a DOM element using JS if it has to be present in 100% of cases? Seems like a waste of resources. cc @juliushaertl There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pixelipo This is part of the logic from core, so that apps don't need to care about adding this sidebar slide functionality. But since we use our own js code to toggle those of course we could also just keep the existing structure and add the toggle button to the template. |
||
</div> | ||
<route-loading-indicator></route-loading-indicator> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,11 @@ | |
<p>{{ statusservice.text }}</p></div> | ||
</div> | ||
|
||
<div id="board-header"> | ||
<div id="app-navigation-toggle" class="icon-menu" ng-click="navibar.show=!navibar.show"></div> | ||
<a class="crumb" href="#" title="<?php p($l->t('All Boards')); ?>"> | ||
<i class="icon icon-home"></i> | ||
<span class="hidden-visually"><?php p($l->t('All Boards')); ?></span> | ||
</a> | ||
<div id="controls"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please revert to previous version of this code. It was decided some time ago that it's a good approach. CHanges here are not needed to make toggle work. I do agree with renaming There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, but it's same code like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "same code as files" I remember that discussion from a different PR 😉 files also has a wrong. This is what is causing issue with positioning of icons mentioned by @juliushaertl There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember we discussed that some times ago, yes, although I'm not sure what exactly the reason was for that. 🙈 Let's use our fixed approach, we can always go to the way files does it once it is implemented properly there. |
||
<div class="crumb svg last"> | ||
<a href="#" id="button-home" title="<?php p($l->t('All Boards')); ?>"> | ||
</a> | ||
</div> | ||
<h1 class="title" style="border-bottom: 2px solid #{{boardservice.getCurrent().color }};"> | ||
{{ boardservice.getCurrent().title }} | ||
</h1> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div id="board-header"> | ||
<div id="app-navigation-toggle" class="icon-menu" ng-click="navibar.show=!navibar.show"></div> | ||
<a class="crumb" href="#" title="<?php p($l->t('All Boards')); ?>"> | ||
<i class="icon icon-home"></i> | ||
<span class="hidden-visually"><?php p($l->t('All Boards')); ?></span> | ||
</a> | ||
<div id="controls"> | ||
<div class="breadcrumb"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. |
||
<div class="crumb svg last"> | ||
<a href="#" id="button-home" title="<?php p($l->t('All Boards')); ?>"> | ||
</a> | ||
<span style="display: none;"></span> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="boardlist"> | ||
<table width="100%"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
if
, since the toggle should always be visible - then you won't need!important
in CSSThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it for different behavior. on mobile devices app-content will be moved to the right. on desktop app-navigation will be hide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it even work, @artemanufrij ? Look at the next line
toggle('hidde')
is not correct 😉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works fine....