mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Fix spacing of timeline squeak items (#154)
* Use box instead of widget for squeak components * Use box instead of widget for squeak detail item component
This commit is contained in:
parent
a37296565c
commit
c22674f3a7
5 changed files with 18 additions and 25 deletions
|
|
@ -56,13 +56,11 @@ export default function SqueakDetailItem({
|
|||
}
|
||||
|
||||
return (
|
||||
<Grid item xs={12}>
|
||||
<Widget
|
||||
disableWidgetMenu
|
||||
upperTitle
|
||||
bodyClass={classes.fullHeightBody}
|
||||
className={classes.card}
|
||||
>
|
||||
<Box
|
||||
p={1}
|
||||
m={1}
|
||||
bgcolor="background.paper"
|
||||
>
|
||||
<Grid
|
||||
container
|
||||
direction="row"
|
||||
|
|
@ -129,7 +127,6 @@ export default function SqueakDetailItem({
|
|||
</Box>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Widget>
|
||||
</Grid>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,15 +50,12 @@ export default function SqueakThreadItem({
|
|||
}
|
||||
|
||||
return (
|
||||
<Grid item xs={12}
|
||||
<Box
|
||||
p={1}
|
||||
m={1}
|
||||
bgcolor="background.paper"
|
||||
onClick={onSqueakClick}
|
||||
>
|
||||
<Widget
|
||||
disableWidgetMenu
|
||||
upperTitle
|
||||
bodyClass={classes.fullHeightBody}
|
||||
className={classes.card}
|
||||
>
|
||||
>
|
||||
<Grid
|
||||
container
|
||||
direction="row"
|
||||
|
|
@ -100,7 +97,6 @@ export default function SqueakThreadItem({
|
|||
</Box>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Widget>
|
||||
</Grid>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,14 +68,14 @@ export default function SqueakPage() {
|
|||
function SqueakContent() {
|
||||
return (
|
||||
<>
|
||||
<Grid container spacing={4} >
|
||||
<div>
|
||||
<SqueakDetailItem
|
||||
key={squeak.getSqueakHash()}
|
||||
handleAddressClick={() => goToSqueakAddressPage(squeak.getAuthorAddress())}
|
||||
handleReplyClick={handleClickOpen}
|
||||
squeak={squeak}>
|
||||
</SqueakDetailItem>
|
||||
</Grid>
|
||||
</div>
|
||||
{MakeSqueakDialogContent()}
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export default function SqueakAddressPage() {
|
|||
function SqueaksContent() {
|
||||
return (
|
||||
<>
|
||||
<Grid container spacing={4} >
|
||||
<div>
|
||||
{squeaks.map(squeak =>
|
||||
<SqueakThreadItem
|
||||
key={squeak.getSqueakHash()}
|
||||
|
|
@ -101,7 +101,7 @@ export default function SqueakAddressPage() {
|
|||
squeak={squeak}>
|
||||
</SqueakThreadItem>
|
||||
)}
|
||||
</Grid>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ export default function TimelinePage() {
|
|||
function SqueaksContent() {
|
||||
return (
|
||||
<>
|
||||
<Grid container spacing={4} >
|
||||
<div>
|
||||
{squeaks.map(squeak =>
|
||||
<SqueakThreadItem
|
||||
key={squeak.getSqueakHash()}
|
||||
|
|
@ -105,7 +105,7 @@ export default function TimelinePage() {
|
|||
squeak={squeak}>
|
||||
</SqueakThreadItem>
|
||||
)}
|
||||
</Grid>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue