Skip to content

Commit

Permalink
feat: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet authored and pawelkmpt committed May 7, 2024
1 parent 4d4fdf6 commit 596b281
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/ui-react/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Card({
url,
tabIndex = 0,
}: CardProps): JSX.Element {
const { title, duration, episodeNumber, seasonNumber, cardImage: image, mediaStatus, scheduledStart } = item;
const { title, duration, episodeNumber, seasonNumber, cardImage: image, mediaStatus, scheduledStart, series_label } = item;
const {
t,
i18n: { language },
Expand Down Expand Up @@ -78,7 +78,7 @@ function Card({
if (loading || disabled || !title) return null;

if (isSeriesItem) {
return <div className={styles.tag}>{t('video:series')}</div>;
return <div className={styles.tag}>{(series_label as string) || t('video:series')}</div>;
} else if (episodeNumber) {
return <div className={styles.tag}>{formatSeriesMetaString(seasonNumber, episodeNumber)}</div>;
} else if (duration) {
Expand Down
7 changes: 7 additions & 0 deletions packages/ui-react/src/components/Header/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,10 @@
width: 80px;
}
}

// Custom
@include responsive.mobile-only() {
.customActions {
display: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,15 @@
border: 3px solid white;
border-radius: 100%;
}

// Custom

/* stylelint-disable no-duplicate-selectors */

.buttonBar {
flex-wrap: wrap;

> a {
margin: 6px;
}
}
2 changes: 1 addition & 1 deletion packages/ui-react/src/containers/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const Layout = () => {
</li>
))}
{afterItems.map((item) => (
<Button key={item.key} label={item.label} to={item.url} variant="text" />
<MenuButton key={item.key} label={item.label} to={item.url} tabIndex={sideBarOpen ? 0 : -1} />
))}
</ul>
{rightItems.map((item) => (
Expand Down

0 comments on commit 596b281

Please sign in to comment.