mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix title columns link width
This commit is contained in:
+11
-3
@@ -15,15 +15,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-container.align-left {
|
.text-container.align-left {
|
||||||
text-align: left;
|
justify-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-container.align-center {
|
.text-container.align-center {
|
||||||
text-align: center;
|
justify-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-container.align-right {
|
.text-container.align-right {
|
||||||
text-align: right;
|
justify-items: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-container.compact {
|
.text-container.compact {
|
||||||
@@ -39,8 +39,16 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.title {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.artists {
|
.artists {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
font-size: var(--theme-font-size-xs) !important;
|
font-size: var(--theme-font-size-xs) !important;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
.name-container {
|
.name-container {
|
||||||
display: -webkit-inline-box;
|
display: -webkit-inline-box;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -9,6 +8,10 @@
|
|||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.name-container {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.name-container.compact {
|
.name-container.compact {
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
+20
@@ -13,6 +13,18 @@
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-container.align-left {
|
||||||
|
justify-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-container.align-center {
|
||||||
|
justify-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-container.align-right {
|
||||||
|
justify-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
.text-container.compact {
|
.text-container.compact {
|
||||||
gap: 0;
|
gap: 0;
|
||||||
}
|
}
|
||||||
@@ -26,8 +38,16 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.title {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.artists {
|
.artists {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
font-size: var(--theme-font-size-xs) !important;
|
font-size: var(--theme-font-size-xs) !important;
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export const DefaultTitleCombinedColumn = (props: ItemTableListInnerColumn) => {
|
|||||||
if (item && 'name' in item && 'imageUrl' in item && 'artists' in item) {
|
if (item && 'name' in item && 'imageUrl' in item && 'artists' in item) {
|
||||||
const rowHeight = props.getRowHeight(props.rowIndex, props);
|
const rowHeight = props.getRowHeight(props.rowIndex, props);
|
||||||
const path = getTitlePath(props.itemType, (rowItem as any).id as string);
|
const path = getTitlePath(props.itemType, (rowItem as any).id as string);
|
||||||
|
const align = props.columns[props.columnIndex]?.align || 'start';
|
||||||
|
|
||||||
const item = rowItem as any;
|
const item = rowItem as any;
|
||||||
const titleLinkProps = path
|
const titleLinkProps = path
|
||||||
@@ -130,6 +131,9 @@ export const DefaultTitleCombinedColumn = (props: ItemTableListInnerColumn) => {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={clsx(styles.textContainer, {
|
className={clsx(styles.textContainer, {
|
||||||
|
[styles.alignCenter]: align === 'center',
|
||||||
|
[styles.alignLeft]: align === 'start',
|
||||||
|
[styles.alignRight]: align === 'end',
|
||||||
[styles.compact]: props.size === 'compact',
|
[styles.compact]: props.size === 'compact',
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
@@ -212,6 +216,7 @@ export const QueueSongTitleCombinedColumn = (props: ItemTableListInnerColumn) =>
|
|||||||
if (row && 'name' in row && 'imageUrl' in row && 'artists' in row) {
|
if (row && 'name' in row && 'imageUrl' in row && 'artists' in row) {
|
||||||
const rowHeight = props.getRowHeight(props.rowIndex, props);
|
const rowHeight = props.getRowHeight(props.rowIndex, props);
|
||||||
const path = getTitlePath(props.itemType, (rowItem as any).id as string);
|
const path = getTitlePath(props.itemType, (rowItem as any).id as string);
|
||||||
|
const align = props.columns[props.columnIndex]?.align || 'start';
|
||||||
|
|
||||||
const item = rowItem as any;
|
const item = rowItem as any;
|
||||||
|
|
||||||
@@ -267,6 +272,9 @@ export const QueueSongTitleCombinedColumn = (props: ItemTableListInnerColumn) =>
|
|||||||
<div
|
<div
|
||||||
className={clsx(styles.textContainer, {
|
className={clsx(styles.textContainer, {
|
||||||
[styles.active]: isActive,
|
[styles.active]: isActive,
|
||||||
|
[styles.alignCenter]: align === 'center',
|
||||||
|
[styles.alignLeft]: align === 'start',
|
||||||
|
[styles.alignRight]: align === 'end',
|
||||||
[styles.compact]: props.size === 'compact',
|
[styles.compact]: props.size === 'compact',
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user