Skip to content

Commit

Permalink
fix: clean up css
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Nov 19, 2024
2 parents 0ee305a + 1e37cf4 commit 6428702
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ type Props = {

const styles = {
container: {
alignItems: 'center',
display: 'flex',
},
valueContainer: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
whiteSpace: 'normal',
height: '100%',
},
buttonContainer: {
display: 'flex',
Expand All @@ -42,17 +41,11 @@ const styles = {
},
previousValue: {
color: colors.grey700,
wordBreak: 'break-word',
},
currentValue: {
color: colors.grey900,
},
updatePreviousValue: {
color: colors.grey700,
maxWidth: '45%',
},
updateCurrentValue: {
color: colors.grey900,
maxWidth: '45%',
wordBreak: 'break-word',
},
updateArrow: {
display: 'inline-flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ export type ChangelogValueCellProps = {
currentValue?: string,
classes: {
container: string,
valueContainer: string,
buttonContainer: string,
previousValue: string,
currentValue: string,
updatePreviousValue: string,
updateCurrentValue: string,
updateArrow: string,
viewButton: string,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import type { ChangelogValueCellProps } from './ChangelogValueCellComponents.typ

const Updated = ({ previousValue, currentValue, classes }: ChangelogValueCellProps) => (
<div className={classes.container}>
<span className={classes.updatePreviousValue}>{previousValue}</span>
<span className={classes.previousValue}>{previousValue}</span>
<span className={classes.updateArrow}>
<IconArrowRight16 />
</span>
<span className={classes.updateCurrentValue}>{currentValue}</span>
<span className={classes.currentValue}>{currentValue}</span>
</div>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ const Updated = ({ previousValue, currentValue, classes }: ChangelogValueCellPro

return (
<>
<div className={classes.valueContainer}>
<div className={classes.container}>
<ValueDisplay
value={previousValue}
showMore={showMore}
className={classes.updatePreviousValue}
className={classes.previousValue}
/>
<span className={classes.updateArrow}>
<IconArrowRight16 />
</span>
<ValueDisplay
value={currentValue}
showMore={showMore}
className={classes.updateCurrentValue}
className={classes.currentValue}
/>
</div>
<div className={classes.buttonContainer}>
Expand Down

0 comments on commit 6428702

Please sign in to comment.