fix item spacing
This commit is contained in:
parent
501ac9f220
commit
28c4fa160c
@ -77,7 +77,7 @@ export function CommentFlat ({ item, rank, siblingComments, ...props }) {
|
|||||||
</div>)
|
</div>)
|
||||||
: <div />}
|
: <div />}
|
||||||
<LinkToContext
|
<LinkToContext
|
||||||
className={siblingComments ? 'py-3' : 'py-2'}
|
className='py-2'
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
router.push(href, as)
|
router.push(href, as)
|
||||||
}}
|
}}
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
.item {
|
.item {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
padding-bottom: 0 !important;
|
padding-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upvote {
|
.upvote {
|
||||||
margin-top: 9px;
|
margin-top: 9px;
|
||||||
margin-left: .25rem;
|
|
||||||
margin-right: 0rem;
|
margin-right: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export function SearchTitle ({ title }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Item ({
|
export default function Item ({
|
||||||
item, rank, belowTitle, right, full, children, siblingComments,
|
item, rank, belowTitle, right, full, children, itemClassName,
|
||||||
onQuoteReply, pinnable
|
onQuoteReply, pinnable
|
||||||
}) {
|
}) {
|
||||||
const titleRef = useRef()
|
const titleRef = useRef()
|
||||||
@ -62,7 +62,7 @@ export default function Item ({
|
|||||||
{rank}
|
{rank}
|
||||||
</div>)
|
</div>)
|
||||||
: <div />}
|
: <div />}
|
||||||
<div className={`${styles.item} ${siblingComments ? 'pt-3' : ''}`}>
|
<div className={classNames(styles.item, itemClassName)}>
|
||||||
{item.position && (pinnable || !item.subName)
|
{item.position && (pinnable || !item.subName)
|
||||||
? <Pin width={24} height={24} className={styles.pin} />
|
? <Pin width={24} height={24} className={styles.pin} />
|
||||||
: item.meDontLikeSats > item.meSats
|
: item.meDontLikeSats > item.meSats
|
||||||
|
@ -118,7 +118,7 @@ a.link:visited {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding-bottom: .5rem;
|
padding-top: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item .companyImage {
|
.item .companyImage {
|
||||||
@ -170,6 +170,7 @@ a.link:visited {
|
|||||||
|
|
||||||
.children {
|
.children {
|
||||||
margin-left: 28px;
|
margin-left: 28px;
|
||||||
|
padding-top: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rank {
|
.rank {
|
||||||
|
@ -51,7 +51,7 @@ export default function Items ({ ssrData, variables = {}, query, destructureData
|
|||||||
<>
|
<>
|
||||||
<div className={styles.grid}>
|
<div className={styles.grid}>
|
||||||
{itemsWithPins.filter(filter).map((item, i) => (
|
{itemsWithPins.filter(filter).map((item, i) => (
|
||||||
<ListItem key={item.id} item={item} rank={rank && i + 1} siblingComments={variables.includeComments} pinnable={isHome ? false : pins?.length > 0} />
|
<ListItem key={item.id} item={item} rank={rank && i + 1} itemClassName={variables.includeComments ? 'py-2' : ''} pinnable={isHome ? false : pins?.length > 0} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<Foooter
|
<Foooter
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
.linkBoxParent {
|
.linkBoxParent {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-left: -0.5rem;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
margin-right: -0.5rem;
|
||||||
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.linkBoxParent > * {
|
.linkBoxParent > * {
|
||||||
|
@ -33,7 +33,7 @@ export default function MoreFooter ({ cursor, count, fetchMore, Skeleton, invisi
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div className={`d-flex justify-content-center mt-3 mb-1 ${invisible ? 'invisible' : ''}`}><Footer /></div>
|
return <div className={`d-flex justify-content-center mt-4 mb-1 ${invisible ? 'invisible' : ''}`}><Footer /></div>
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NavigateFooter ({ cursor, count, fetchMore, href, text, invisible, noMoreText = 'NO MORE' }) {
|
export function NavigateFooter ({ cursor, count, fetchMore, href, text, invisible, noMoreText = 'NO MORE' }) {
|
||||||
|
@ -6,7 +6,7 @@ export default function SecondBar (props) {
|
|||||||
const { prefix, topNavKey, sub } = props
|
const { prefix, topNavKey, sub } = props
|
||||||
if (!hasNavSelect(props)) return null
|
if (!hasNavSelect(props)) return null
|
||||||
return (
|
return (
|
||||||
<Navbar className='pt-0 pb-3'>
|
<Navbar className='pt-0 pb-2'>
|
||||||
<Nav
|
<Nav
|
||||||
className={styles.navbarNav}
|
className={styles.navbarNav}
|
||||||
activeKey={topNavKey}
|
activeKey={topNavKey}
|
||||||
|
@ -15,7 +15,7 @@ export default function RecentHeader ({ type, sub }) {
|
|||||||
|
|
||||||
type ||= router.query.type || type || 'posts'
|
type ||= router.query.type || type || 'posts'
|
||||||
return (
|
return (
|
||||||
<div className='text-muted fw-bold mt-1 mb-3 d-flex justify-content-start align-items-center'>
|
<div className='text-muted fw-bold my-1 d-flex justify-content-start align-items-center'>
|
||||||
<Select
|
<Select
|
||||||
groupClassName='mb-2'
|
groupClassName='mb-2'
|
||||||
className='w-auto'
|
className='w-auto'
|
||||||
|
@ -81,7 +81,7 @@ export default function TerritoryHeader ({ sub }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TerritoryPaymentDue sub={sub} />
|
<TerritoryPaymentDue sub={sub} />
|
||||||
<div className='mb-3'>
|
<div className='mb-2 mt-1'>
|
||||||
<div>
|
<div>
|
||||||
<TerritoryDetails sub={sub}>
|
<TerritoryDetails sub={sub}>
|
||||||
<div className='d-flex my-2 justify-content-end'>
|
<div className='d-flex my-2 justify-content-end'>
|
||||||
|
@ -46,7 +46,7 @@ export default function TopHeader ({ sub, cat }) {
|
|||||||
initial={{ what, by, when, from: '', to: '' }}
|
initial={{ what, by, when, from: '', to: '' }}
|
||||||
onSubmit={top}
|
onSubmit={top}
|
||||||
>
|
>
|
||||||
<div className='text-muted fw-bold mt-1 mb-3 d-flex align-items-center flex-wrap'>
|
<div className='text-muted fw-bold my-1 d-flex align-items-center flex-wrap'>
|
||||||
<div className='text-muted fw-bold mb-2 d-flex align-items-center'>
|
<div className='text-muted fw-bold mb-2 d-flex align-items-center'>
|
||||||
<Select
|
<Select
|
||||||
groupClassName='me-2 mb-0'
|
groupClassName='me-2 mb-0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user