pripomocka ne prerastejo vrstice 399 px, prazna oglasna celica v rubriki se skrije, vrhnji pas omejen na 728 px
This commit is contained in:
@@ -61,7 +61,7 @@ export function BreakingNewsWidget({ startOffset = 0 }: { startOffset?: number }
|
||||
|
||||
return (
|
||||
<div
|
||||
className="bg-card rounded-lg border border-card-border overflow-hidden h-full flex flex-col min-h-[320px]"
|
||||
className="bg-card rounded-lg border border-card-border overflow-hidden h-full flex flex-col"
|
||||
onMouseEnter={() => setPaused(true)}
|
||||
onMouseLeave={() => setPaused(false)}
|
||||
data-testid="widget-breaking-news"
|
||||
@@ -70,7 +70,7 @@ export function BreakingNewsWidget({ startOffset = 0 }: { startOffset?: number }
|
||||
<Globe className="w-4 h-4 text-primary" />
|
||||
<h3 className="font-bold text-card-foreground text-sm">Aktuelle Nachrichten</h3>
|
||||
</div>
|
||||
<div className="p-3 flex-1 flex flex-col">
|
||||
<div className="p-3 flex-1 min-h-0 flex flex-col overflow-hidden">
|
||||
{visible.map((item, i) => (
|
||||
<a
|
||||
key={`${offset}-${i}`}
|
||||
|
||||
@@ -61,7 +61,7 @@ export function NewsWidget({ startOffset = 0 }: { startOffset?: number } = {}) {
|
||||
|
||||
return (
|
||||
<div
|
||||
className="bg-card rounded-lg border border-card-border overflow-hidden h-full flex flex-col min-h-[320px]"
|
||||
className="bg-card rounded-lg border border-card-border overflow-hidden h-full flex flex-col"
|
||||
onMouseEnter={() => setPaused(true)}
|
||||
onMouseLeave={() => setPaused(false)}
|
||||
data-testid="widget-news"
|
||||
@@ -70,7 +70,7 @@ export function NewsWidget({ startOffset = 0 }: { startOffset?: number } = {}) {
|
||||
<Newspaper className="w-4 h-4 text-primary" />
|
||||
<h3 className="font-bold text-card-foreground text-sm">Musiknachrichten</h3>
|
||||
</div>
|
||||
<div className="p-3 flex-1 flex flex-col">
|
||||
<div className="p-3 flex-1 min-h-0 flex flex-col overflow-hidden">
|
||||
{visible.map((item, i) => (
|
||||
<a
|
||||
key={`${offset}-${i}`}
|
||||
|
||||
@@ -169,7 +169,7 @@ export default function CategoryPage({ fixedCategory }: { fixedCategory?: string
|
||||
const adCol = row === 0 ? 3 : row % 4;
|
||||
for (let col = 0; col < 4; col++) {
|
||||
if (col === adCol) {
|
||||
items.push(<div key={`ad-row-${row}`} className="lg:row-span-2 h-full"><ArticleCardAd /></div>);
|
||||
items.push(<div key={`ad-row-${row}`} className="lg:row-span-2 h-full empty:hidden"><ArticleCardAd /></div>);
|
||||
} else if (ai < articles.length) {
|
||||
const a = articles[ai];
|
||||
items.push(
|
||||
|
||||
Reference in New Issue
Block a user