react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

text overlap after import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css'

Open AliceChang-99 opened this issue 5 years ago • 2 comments

Question text overlap after import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css'

If remove this import, there will be no sort icon shown up. How to correctly show icon and avoid text overlap at the same time?

codesandbox https://codesandbox.io/s/react-bootstrap-table-2-ii9g8

AliceChang-99 avatar Mar 20 '20 10:03 AliceChang-99

Hi the import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css' it's not necessary, but the missing sort icons seem to be a bug, I didn't found the root cause yet, but you can use this workaround for now.

th .order-4:before {
    margin-left: 3.5px;
    content: "\2191";
    opacity: 0.4;
}

th .order-4:after {
    content: "\2193";
    opacity: 0.4;
}

th .caret-4-asc:before {
    margin-left: 3.5px;
    content: "\2191";
}

th .caret-4-asc:after {
    content: "\2193";
    opacity: 0.4;
}

th .caret-4-desc:before {
    margin-left: 3.5px;
    content: "\2191";
    opacity: 0.4;
}

th .caret-4-desc:after {
    content: "\2193";
}

Here a example Edit sortIconsWorkAround

Ymbere avatar Mar 24 '20 06:03 Ymbere

This is what worked for me.

radubartan avatar May 27 '22 19:05 radubartan