fix: update name and description to be selectable in secrets (#41365)

update name and description to be selectable
This commit is contained in:
Ali Waseem
2025-12-15 13:10:43 -07:00
committed by GitHub
parent 9685711519
commit 143b1c4e14
2 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ interface SecretRowProps {
onSelectRemove: (secret: VaultSecret) => void
}
const SecretRow = ({ row, col, onSelectEdit, onSelectRemove }: SecretRowProps) => {
export const SecretRow = ({ row, col, onSelectEdit, onSelectRemove }: SecretRowProps) => {
const { ref } = useParams()
const { data: project } = useSelectedProjectQuery()
const [revealSecret, setRevealSecret] = useState(false)
@@ -142,16 +142,16 @@ const SecretRow = ({ row, col, onSelectEdit, onSelectRemove }: SecretRowProps) =
return (
<div className="w-full flex flex-col justify-center">
<p className="text-xs text-foreground truncate" title={name}>
<p className="text-xs text-foreground truncate select-text" title={name}>
{name}
</p>
{row.description !== undefined && row.description !== '' && (
<div>
<p className="text-xs text-foreground-lighter w-full truncate">{row.description}</p>
<p className="text-xs text-foreground-lighter w-full truncate select-text">
{row.description}
</p>
</div>
)}
</div>
)
}
export default SecretRow

View File

@@ -2,7 +2,7 @@ import type { Column } from 'react-data-grid'
import type { VaultSecret } from 'types'
import { cn } from 'ui'
import SecretRow from './SecretRow'
import { SecretRow } from './SecretRow'
import { SecretTableColumn } from './Secrets.types'
export const SECRET_TABLE_COLUMNS: SecretTableColumn[] = [