Skip to content

Commit

Permalink
fix(FEC-13709): remove player top bar if there is no content in it (#883
Browse files Browse the repository at this point in the history
)

### Description of the Changes

- bugfix.

set `visibility: hidden` to top bar component in case left and right
controls do not contain any children (top bar is empty).

related PR: kaltura/playkit-js-ui-managers#53

#### Resolves FEC-13709
  • Loading branch information
lianbenjamin authored May 15, 2024
1 parent 24968c4 commit 75172c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/top-bar/_top-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
}
}

.player .top-bar:has(.left-controls:empty + .right-controls:empty) {
visibility: hidden;
}

.player.size-sm .top-bar {
.left-controls {
margin: #{$top-bar-top-bottom-gutter}px 0 #{$top-bar-top-bottom-gutter}px #{$gui-small-gutter}px;
Expand Down

0 comments on commit 75172c7

Please sign in to comment.