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

fix: Long column names are cut off in the "Manage Columns" menu #2353

Open
wants to merge 5 commits into
base: alpha
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@

.visibilityIcon {
cursor: pointer;
width: 30px;
}

.columnConfigItemName {
text-overflow: ellipsis;
overflow: hidden;
line-height: 24px;
margin-left: 15px;
margin-right: 15px;
}

.columnIcon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
this.entryRef = React.createRef();
}

componentDidMount() {
const rect = this.entryRef.current?.getBoundingClientRect();
this.maxWidth = rect.x + rect.width - 20 + 'px';
}

componentWillReceiveProps(props) {
if (props.schema !== this.props.schema) {
this.setState({
Expand Down Expand Up @@ -107,7 +112,9 @@
>
<div className={styles.popover} id={POPOVER_CONTENT_ID}>
{title}
<div className={styles.body}>
<div className={styles.body} style={{
maxWidth: this.maxWidth,

Check failure on line 116 in src/components/ColumnsConfiguration/ColumnsConfiguration.react.js

View workflow job for this annotation

GitHub Actions / Lint

Expected indentation of 14 spaces but found 16
}}>

Check failure on line 117 in src/components/ColumnsConfiguration/ColumnsConfiguration.react.js

View workflow job for this annotation

GitHub Actions / Lint

Expected indentation of 12 spaces but found 14
<div className={styles.columnConfigContainer}>
<DndProvider backend={HTML5Backend}>
{order.map(({ name, visible, ...rest }, index) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
right: 0;
border-radius: 5px 0 5px 5px;
background: #797691;
width: 320px;
max-width: 100vw;
min-width: 320px;
font-size: 14px;

.columnConfigContainer {
Expand Down
Loading