fix: truncate long URLs in Links table to prevent action buttons from being pushed off-screen
Closes #4136 Adds width constraints to slug and url columns in LinksTable. The ExternalLink component already has truncate + overflow:hidden, but the DataColumn itself was unconstrained, allowing long URLs to push action buttons off-screen.
This commit is contained in:
1 parent
c78ff36db0
commit
5e89cc6e80
1 file changed
+2
-2
@@ -22,13 +22,13 @@ export function LinksTable({ showActions, ...props }: LinksTableProps) {
|
||||
return <Link href={renderUrl(`/links/${id}`)}>{name}</Link>;
|
||||
}}
|
||||
</DataColumn>
|
||||
<DataColumn id="slug" label={t(labels.link)}>
|
||||
<DataColumn id="slug" label={t(labels.link)} width="25%">
|
||||
{({ slug }: any) => {
|
||||
const url = getSlugUrl(slug);
|
||||
return <ExternalLink href={url}>{url}</ExternalLink>;
|
||||
}}
|
||||
</DataColumn>
|
||||
<DataColumn id="url" label={t(labels.destinationUrl)}>
|
||||
<DataColumn id="url" label={t(labels.destinationUrl)} width="30%">
|
||||
{({ url }: any) => {
|
||||
return <ExternalLink href={url}>{url}</ExternalLink>;
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user