Skip to content

Commit

Permalink
style(SinglePublication.tsx): add border styling to the chip componen…
Browse files Browse the repository at this point in the history
…t for improved visual appearance

The class name 'pos' has been updated to 'publication' to provide a more descriptive and meaningful name for the element. Additionally, a border styling has been added to the chip component to enhance its visual appearance and make it stand out more effectively.
  • Loading branch information
ktun95 committed Nov 21, 2024
1 parent 8d9f0ac commit 587404d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Link } from "react-router-dom"
import {
makeStyles,
Card,
Expand Down Expand Up @@ -31,14 +32,14 @@ const useStyles = makeStyles((theme) => ({
card: {
borderLeft: `10px solid ${theme.palette.primary.main}`,
boxShadow: theme.shadows[4],
padding: "1rem",
paddingLeft: "1rem",
},
title: {
fontWeight: 600,
fontSize: "24px",
fontFamily: "ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",
},
pos: {
publication: {
color: grey[700],
marginBottom: theme.spacing(1),
},
Expand All @@ -50,6 +51,7 @@ const useStyles = makeStyles((theme) => ({
marginBottom: theme.spacing(1),
},
chip: {
border: `1px solid ${grey[200]}`,
backgroundColor: lightBlue[50],
},
abstractHeading: {
Expand Down Expand Up @@ -81,7 +83,7 @@ const SinglePublication = ({ data }: SinglePublicationProperties) => {
</Typography>
<Typography
className={
classes.pos
classes.publication
}>{`Published in ${journal}, ${formattedDate}`}</Typography>
<Typography className={classes.identifiers}>
PMID: {pubmedId}
Expand Down

0 comments on commit 587404d

Please sign in to comment.