Skip to content

Commit

Permalink
fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mond1c committed Dec 4, 2023
1 parent 8499e04 commit 7d4bcd1
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions src/frontend/overlay/src/components/organisms/tickers/Image.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import {memo, React, useCallback, useEffect, useRef, useState} from "react";
import React from "react";
import styled from "styled-components";
import c from "../../../config";
import {TextWrap} from "./Text";
import {getTextWidth} from "../../atoms/ShrinkingBox";




export const ImageWrap = styled.div`
background: url(${(props) => props.path});
width: 153px;
height: 30px;
margin: 0 -16px;
width: 100%;
height: 100%;
max-height: 100%;
max-width: 100%;
background: url(${(props) => props.path}) no-repeat;
display: flex;
padding: 0 16px;
box-sizing: border-box;
background-size: contain;
background-position: center;
`;


export const Image = ({tickerSettings, part}) => {
return <TextWrap part={part}>
<ImageWrap
path={tickerSettings.path}
/>
</TextWrap>;
return <ImageWrap
path={tickerSettings.path}
/>;
};

export default Image;
Expand Down

0 comments on commit 7d4bcd1

Please sign in to comment.