Skip to content

Commit

Permalink
List items: wrap title/info
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jun 13, 2024
1 parent 3af8dfb commit 3c61014
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions panel/src/components/Collection/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default {
background: var(--color-white);
box-shadow: var(--shadow);
border-radius: var(--rounded);
height: var(--item-height);
min-height: var(--item-height);
container-type: inline-size;
}
.k-item:has(a:focus) {
Expand Down Expand Up @@ -214,7 +214,6 @@ export default {
--item-button-width: auto;
display: grid;
height: var(--item-height);
align-items: center;
grid-template-columns: 1fr auto;
}
Expand All @@ -226,13 +225,13 @@ export default {
--ratio: 1/1;
border-start-start-radius: var(--rounded);
border-end-start-radius: var(--rounded);
height: var(--item-height);
height: 100%;
}
.k-item[data-layout="list"] .k-item-content {
display: flex;
min-width: 0;
white-space: nowrap;
gap: var(--spacing-2);
flex-wrap: wrap;
column-gap: var(--spacing-4);
justify-content: space-between;
}
.k-item[data-layout="list"] .k-item-title,
Expand All @@ -241,23 +240,6 @@ export default {
white-space: nowrap;
text-overflow: ellipsis;
}
.k-item[data-layout="list"] .k-item-title {
flex-shrink: 1;
}
.k-item[data-layout="list"] .k-item-info {
flex-shrink: 2;
}
@container (max-width: 30rem) {
.k-item[data-layout="list"] .k-item-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.k-item[data-layout="list"] .k-item-info {
display: none;
}
}
.k-item[data-layout="list"] .k-sort-button {
--button-width: calc(1.5rem + var(--spacing-1));
Expand Down Expand Up @@ -306,7 +288,6 @@ export default {
border-start-start-radius: var(--rounded);
border-end-start-radius: var(--rounded);
aspect-ratio: auto;
height: var(--item-height);
}
.k-item[data-layout="cardlets"] .k-item-content {
grid-area: content;
Expand Down

0 comments on commit 3c61014

Please sign in to comment.