mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Make all elements of title row same height
This is so that text areas and buttons align perfectly.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
flatLeft?: boolean;
|
||||
flatRight?: boolean;
|
||||
title?: string;
|
||||
styleHeight?: "2rem" | "2.5rem";
|
||||
}
|
||||
|
||||
const {
|
||||
@@ -21,6 +22,7 @@
|
||||
flatLeft = false,
|
||||
flatRight = false,
|
||||
title,
|
||||
styleHeight = "2rem",
|
||||
}: Props = $props();
|
||||
|
||||
const style = $derived(
|
||||
@@ -43,7 +45,6 @@
|
||||
|
||||
color: var(--text-color);
|
||||
|
||||
height: 2rem;
|
||||
column-gap: 0;
|
||||
row-gap: 0;
|
||||
display: grid;
|
||||
@@ -371,6 +372,7 @@
|
||||
<div
|
||||
class="container active"
|
||||
style:cursor={!disabled ? "pointer" : "default"}
|
||||
style:height={styleHeight}
|
||||
class:disabled
|
||||
class:active
|
||||
class:flat-right={flatRight}
|
||||
|
||||
Reference in New Issue
Block a user