Skip to content

Commit 26323cc

Browse files
committed
Hide bottom border on header in shrink mode.
1 parent 2bb9a61 commit 26323cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/cards/card.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
font-weight: bold;
113113
}
114114

115+
.header-buttons-hidden {
116+
border-bottom: 0px;
117+
}
118+
115119
.header-buttons-right {
116120
display: flex;
117121
flex-direction: row;

src/components/cards/cards.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React, {Fragment} from 'react';
3+
import classNames from 'classnames';
34
import {FormattedMessage} from 'react-intl';
45
import Draggable from 'react-draggable';
56

@@ -15,7 +16,7 @@ import {translateVideo} from '../../lib/libraries/decks/translate-video.js';
1516
import {translateImage} from '../../lib/libraries/decks/translate-image.js';
1617

1718
const CardHeader = ({onCloseCards, onToggleCards, onShowAll, totalSteps, step, toggle}) => (
18-
<div className={styles.headerButtons}>
19+
<div className={toggle ? styles.headerButtons : classNames(styles.headerButtons, styles.headerButtonsHidden)}>
1920
<div
2021
className={styles.allButton}
2122
onClick={onShowAll}

0 commit comments

Comments
 (0)