fix: prevent text wrap in listing-card, ensure equal card widths with ellipsis overflow
This commit is contained in:
@@ -189,6 +189,7 @@ style.textContent = /* css */`
|
|||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: box-shadow var(--transition-fast);
|
transition: box-shadow var(--transition-fast);
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
listing-card:hover {
|
listing-card:hover {
|
||||||
@@ -244,18 +245,27 @@ style.textContent = /* css */`
|
|||||||
font-weight: var(--font-weight-bold);
|
font-weight: var(--font-weight-bold);
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
listing-card .listing-price-secondary {
|
listing-card .listing-price-secondary {
|
||||||
font-size: var(--font-size-xs);
|
font-size: var(--font-size-xs);
|
||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
listing-card .listing-location {
|
listing-card .listing-location {
|
||||||
font-size: var(--font-size-xs);
|
font-size: var(--font-size-xs);
|
||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
listing-card .favorite-btn {
|
listing-card .favorite-btn {
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ style.textContent = /* css */`
|
|||||||
|
|
||||||
page-my-listings .listing-wrapper {
|
page-my-listings .listing-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
page-my-listings .status-badge {
|
page-my-listings .status-badge {
|
||||||
|
|||||||
Reference in New Issue
Block a user