ng-include was breaking things, so we create a new ng-if to match based on media queries

This commit is contained in:
Joseph Schorr 2014-08-15 21:09:02 -04:00
parent 9a402ab0b1
commit de8bd4a92e
3 changed files with 20 additions and 7 deletions

View file

@ -4615,30 +4615,30 @@ i.quay-icon {
display: inline-block; display: inline-block;
} }
.organization-header .popover { .team-view .organization-header .popover {
max-width: none !important; max-width: none !important;
} }
.organization-header .popover.bottom-right .arrow:after { .team-view .organization-header .popover.bottom-right .arrow:after {
border-bottom-color: #f7f7f7; border-bottom-color: #f7f7f7;
top: 2px; top: 2px;
} }
.organization-header .popover-content { .team-view .organization-header .popover-content {
font-size: 14px; font-size: 14px;
padding-top: 6px; padding-top: 6px;
} }
.organization-header .popover-content input { .team-view .organization-header .popover-content input {
background: white; background: white;
} }
.team-view-add-element .help-text { .team-view .team-view-add-element .help-text {
font-size: 13px; font-size: 13px;
color: #ccc; color: #ccc;
margin-top: 10px; margin-top: 10px;
} }
.organization-header .popover-content { .team-view .organization-header .popover-content {
min-width: 500px; min-width: 500px;
} }

View file

@ -1811,6 +1811,19 @@ quayApp.directive('quayShow', function($animate, Features, Config) {
}); });
quayApp.directive('ngIfMedia', function ($animate) {
return {
transclude: 'element',
priority: 600,
terminal: true,
restrict: 'A',
link: buildConditionalLinker($animate, 'ngIfMedia', function(value) {
return window.matchMedia(value).matches;
})
};
});
quayApp.directive('quaySection', function($animate, $location, $rootScope) { quayApp.directive('quaySection', function($animate, $location, $rootScope) {
return { return {
priority: 590, priority: 590,

View file

@ -73,7 +73,7 @@
</table> </table>
<div ng-show="canEditMembers"> <div ng-show="canEditMembers">
<div class="visible-xs visible-sm"> <div ng-if-media="'(max-width: 560px)'">
<div ng-include="'/static/directives/team-view-add.html'"></div> <div ng-include="'/static/directives/team-view-add.html'"></div>
</div> </div>
</div> </div>