Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display issues with frozen and Detail View #379

Open
zhan8863 opened this issue Jun 28, 2022 · 1 comment
Open

Display issues with frozen and Detail View #379

zhan8863 opened this issue Jun 28, 2022 · 1 comment

Comments

@zhan8863
Copy link

image

the example https://autodesk.github.io/react-base-table/examples/detail-view

How to solve the display problem caused by using both frozen column and detail view

@zhan8863
Copy link
Author

zhan8863 commented Jun 28, 2022

`const columns = generateColumns(10)
columns[0].frozen = 'left'

const data = generateData(columns, 200)
console.log(columns)
data.forEach(x => {
x.children = [
{
id: ${x.id}-detail,
content: faker.lorem.paragraphs(),
},
]
})

const GlobalStyle = createGlobalStyle`
.BaseTable__row--depth-0 {
height: 50px;
}

.BaseTable__row--depth-0 .BaseTable__row-cell-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
`

const Row = styled.divpadding: 15px;
const rowRenderer = ({ rowData, cells }) => {
if (rowData.content) return {rowData.content}
return cells
}

export default () => (
<>


</>
)
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant