Fix lint issues

This commit is contained in:
Kuba Orlik 2026-08-20 17:55:58 +02:00
parent d16076af92
commit af82fa80c4
3 changed files with 12 additions and 27 deletions

View File

@ -51,6 +51,7 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
gap: 16px; gap: 16px;
.tile-title { .tile-title {
font-weight: bold; font-weight: bold;
line-height: 20px; line-height: 20px;
@ -95,6 +96,7 @@
.tile-image--square { .tile-image--square {
grid-row: 1/2; grid-row: 1/2;
picture img { picture img {
display: block !important; display: block !important;
} }
@ -119,6 +121,7 @@
.tile-image--horizontal { .tile-image--horizontal {
grid-column: 1/3; grid-column: 1/3;
picture img { picture img {
display: block !important; display: block !important;
} }
@ -143,6 +146,7 @@
.tile-image--vertical { .tile-image--vertical {
grid-row: 1/4; grid-row: 1/4;
picture img { picture img {
display: block !important; display: block !important;
} }
@ -191,7 +195,7 @@
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
.tile.vertical { .tile.vertical {
grid-row: span 1; grid-row: span 2;
grid-column: span 1; grid-column: span 1;
.tile-image--vertical { .tile-image--vertical {
@ -210,11 +214,6 @@
} }
} }
} }
.tile.vertical {
grid-row: span 2;
grid-column: span 1;
}
} }
} }

View File

@ -6,14 +6,6 @@ import { getFgColorVariable } from "src/back/colors.js";
type ExtractArray<T> = T extends Array<infer X> ? X : never; type ExtractArray<T> = T extends Array<infer X> ? X : never;
const generate_id = (function* () {
while (true) {
for (let i = 1; i <= 10000; i++) {
yield i;
}
}
})();
const component_arguments = { const component_arguments = {
bleed: new ComponentArguments.Enum(["none", "bleed", "screen"]).setDefaultValue( bleed: new ComponentArguments.Enum(["none", "bleed", "screen"]).setDefaultValue(
"none" "none"
@ -97,19 +89,12 @@ export class DynamicGridV2 extends Component<typeof component_arguments> {
); );
} }
toHTML( toHTML({
{
args: { tiles, bleed }, args: { tiles, bleed },
jdd_context, jdd_context,
classes, classes,
index, index,
}: ComponentToHTMLArgs<typeof component_arguments>, }: ComponentToHTMLArgs<typeof component_arguments>): FlatTemplatable {
tab_style_when_active = `border-bottom-color: var(--color-brand-canvas);
border-top-color: var(--color-brand-accent-04);
background: var(--color-brand-canvas);
color: var(--color-brand-text-fg);`
): FlatTemplatable {
const { value: id } = generate_id.next();
return ( return (
<div <div
class={["dynamic-grid", `dynamic-grid--bleed-${bleed}`, ...classes]} class={["dynamic-grid", `dynamic-grid--bleed-${bleed}`, ...classes]}

View File

@ -1,6 +1,7 @@
.heading { .heading {
text-wrap: pretty; text-wrap: pretty;
text-wrap: balance; text-wrap: balance;
& > * { & > * {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;