Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(api-header): tags and views overflows under the sticky navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud committed Dec 26, 2019
1 parent 954428d commit d72c711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/portal/api/_api.scss
Expand Up @@ -290,7 +290,9 @@ div#api-navbar:before{
}


#pageHeader.sticky #header-detail {
#pageHeader.sticky #header-detail,
#pageHeader.sticky #header-tags,
#pageHeader.sticky #header-views {
opacity: 0;
}

Expand Down
4 changes: 2 additions & 2 deletions src/portal/api/header/api-header.html
Expand Up @@ -51,11 +51,11 @@
<span ng-if="header.name !== 'api.endpoint'">{{::header.value}}</span>
</li>
</ul>
<div ng-if="$ctrl.Constants.portal.apis.apiHeaderShowTags.enabled && $ctrl.api.tags.length > 0">
<div id="header-tags" ng-if="$ctrl.Constants.portal.apis.apiHeaderShowTags.enabled && $ctrl.api.tags.length > 0">
<h2>{{ 'api.header.tags' | translate }}</h2>
<span ng-repeat="t in $ctrl.api.tags" class="tag-or-view">{{t}}</span>
</div>
<div ng-if="$ctrl.Constants.portal.apis.apiHeaderShowViews.enabled && $ctrl.api.views.length > 0">
<div id="header-views" ng-if="$ctrl.Constants.portal.apis.apiHeaderShowViews.enabled && $ctrl.api.views.length > 0">
<h2>{{ 'api.header.views' | translate }}</h2>
<span ng-repeat="v in $ctrl.api.views" class="tag-or-view">{{v}}</span>
</div>
Expand Down

0 comments on commit d72c711

Please sign in to comment.