Skip to content

Commit ddfb67a

Browse files
committed
ui: make list more tappable
1 parent 5753e06 commit ddfb67a

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

apps/teskooano/src/plugins/celestial-hierarchy/view/CelestialHierarchy.template.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,26 @@ template.innerHTML = `
7272
display: flex;
7373
align-items: center;
7474
padding-left: 4px; /* Base padding */
75-
min-height: 24px; /* Ensure consistent height */
75+
min-height: 32px; /* Increased to match caret height */
7676
}
7777
.list-item-content.leaf-node {
78-
padding-left: 22px; /* Indent leaf nodes further to align with text after caret */
78+
padding-left: 36px; /* Increased indent to align with text after larger caret */
7979
}
8080
8181
/* Style the caret/arrow container (SPAN) */
8282
.caret {
8383
cursor: pointer;
8484
user-select: none;
8585
display: inline-block; /* Or flex if needed */
86-
width: 18px; /* Fixed width for alignment */
87-
height: 18px; /* Match button size roughly */
86+
width: 32px; /* Increased for better touch target */
87+
height: 32px; /* Increased for better touch target */
8888
flex-shrink: 0;
8989
margin-right: 4px; /* Space between caret and row */
9090
position: relative; /* For pseudo-element positioning */
9191
transition: transform 0.15s ease-out;
92+
/* Ensure good touch target on mobile */
93+
min-width: 32px;
94+
min-height: 32px;
9295
}
9396
/* Caret arrow using ::before */
9497
.caret::before {
@@ -98,7 +101,7 @@ template.innerHTML = `
98101
top: 50%;
99102
left: 50%;
100103
transform: translate(-50%, -50%);
101-
font-size: 10px; /* Adjust size */
104+
font-size: 16px; /* Increased font size for better visibility */
102105
}
103106
.caret.caret-down::before {
104107
transform: translate(-50%, -50%) rotate(90deg);

0 commit comments

Comments
 (0)