Prevent line wraps on mobile for ratings

pull/10475/head
Bogdan 4 months ago
parent f735e31835
commit 66a6a663ba

@ -1,3 +1,7 @@
.wrapper {
display: inline-block;
}
.image { .image {
align-content: center; align-content: center;
margin-right: 5px; margin-right: 5px;

@ -2,6 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'image': string; 'image': string;
'wrapper': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -23,7 +23,7 @@ function ImdbRating(props: ImdbRatingProps) {
return ( return (
<Tooltip <Tooltip
anchor={ anchor={
<span> <span className={styles.wrapper}>
{!hideIcon && ( {!hideIcon && (
<img <img
className={styles.image} className={styles.image}

@ -1,3 +1,7 @@
.wrapper {
display: inline-block;
}
.image { .image {
align-content: center; align-content: center;
margin-right: 5px; margin-right: 5px;

@ -2,6 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'image': string; 'image': string;
'wrapper': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -24,7 +24,7 @@ function RottenTomatoRating(props: RottenTomatoRatingProps) {
const ratingImage = value > 50 ? rtFresh : rtRotten; const ratingImage = value > 50 ? rtFresh : rtRotten;
return ( return (
<span> <span className={styles.wrapper}>
{!hideIcon && ( {!hideIcon && (
<img <img
className={styles.image} className={styles.image}

@ -1,3 +1,7 @@
.wrapper {
display: inline-block;
}
.image { .image {
align-content: center; align-content: center;
margin-right: 5px; margin-right: 5px;

@ -2,6 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'image': string; 'image': string;
'wrapper': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -22,7 +22,7 @@ function TmdbRating(props: TmdbRatingProps) {
return ( return (
<Tooltip <Tooltip
anchor={ anchor={
<span> <span className={styles.wrapper}>
{!hideIcon && ( {!hideIcon && (
<img <img
className={styles.image} className={styles.image}

@ -1,3 +1,7 @@
.wrapper {
display: inline-block;
}
.image { .image {
align-content: center; align-content: center;
margin-right: 5px; margin-right: 5px;

@ -2,6 +2,7 @@
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'image': string; 'image': string;
'wrapper': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

@ -22,7 +22,7 @@ function TraktRating(props: TraktRatingProps) {
return ( return (
<Tooltip <Tooltip
anchor={ anchor={
<span> <span className={styles.wrapper}>
{!hideIcon && ( {!hideIcon && (
<img <img
className={styles.image} className={styles.image}

Loading…
Cancel
Save