Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/_shared/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HeroSection({
{eyebrow}
</span>
)}
<h1 className="mt-2 text-3xl md:text-[44px] font-extrabold leading-[1.12] tracking-tight text-accent capitalize">
<h1 className="mt-2 text-3xl md:text-[44px] font-extrabold leading-[1.12] tracking-tight text-accent capitalize break-words">
{title}{" "}
{titleAccent && <span className="text-eiti-navy2">{titleAccent}</span>}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion components/dataset/individualPage/ResourcesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function ResourcesList({
className="flex w-full flex-col gap-4 rounded-lg border border-eiti-border bg-white px-5 py-4 md:flex-row md:items-center md:justify-between"
>
<div className="min-w-0 grow">
<h4 className="text-[15px] font-bold leading-snug text-accent line-clamp-3">
<h4 className="text-[15px] font-bold leading-snug text-accent line-clamp-3 break-words">
{resource.name || "No title"}
</h4>
{resource.description ? (
Expand Down
2 changes: 1 addition & 1 deletion components/dataset/search/DatasetItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function DatasetItem({
href={`/@${dataset.organization.name}/${dataset.name}`}
className="group block rounded-lg border border-eiti-border bg-white p-5 transition-all hover:border-eiti-borderinput hover:shadow-sm"
>
<div className="text-[17px] font-extrabold leading-snug text-accent">
<div className="text-[17px] font-extrabold leading-snug text-accent break-words">
<span className="border-b-2 border-transparent group-hover:border-eiti-amber">
{dataset.title}
</span>
Expand Down
8 changes: 4 additions & 4 deletions components/home/mainSection/MainSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,23 @@ export default function MainSection({
allHref="/search"
allLabel="All datasets"
/>
<div className="grid gap-4 md:grid-cols-3">
<div className="grid grid-cols-1 gap-4 md:grid-cols-3">
{datasets
.filter((dataset) => dataset.organization?.name)
.slice(0, 3)
.map((dataset) => (
<Link
key={dataset.id}
href={`/@${dataset.organization?.name}/${dataset.name}`}
className="flex min-h-[128px] flex-col justify-between rounded-lg border border-eiti-border border-l-2 border-l-eiti-amber bg-white px-5 py-4 transition-all hover:border-eiti-borderinput hover:shadow-sm"
className="flex min-h-[128px] min-w-0 flex-col justify-between rounded-lg border border-eiti-border border-l-2 border-l-eiti-amber bg-white px-5 py-4 transition-all hover:border-eiti-borderinput hover:shadow-sm"
>
<div>
<div className="min-w-0">
{dataset.metadata_modified && (
<div className="mb-1 text-[10px] font-bold uppercase tracking-label text-eiti-amberink">
Updated {getTimeAgo(dataset.metadata_modified)}
</div>
)}
<div className="text-base font-extrabold leading-snug text-accent">
<div className="text-base font-extrabold leading-snug text-accent break-words">
{dataset.title || dataset.name}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function SearchPageContent() {
<div className="lg:col-span-3 lg:sticky top-3 h-fit">
<DatasetSearchFilters />
</div>
<div className="lg:col-span-6">
<div className="lg:col-span-6 min-w-0">
<ListOfDatasets />
</div>
</article>
Expand Down
Loading