Skip to content

Commit

Permalink
fix : Added max-width property for tooltip on create and edit row for…
Browse files Browse the repository at this point in the history
… foreign key fields
  • Loading branch information
S-Abdul-Rahman committed May 27, 2024
1 parent 52e5d59 commit b130313
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions frontend/src/TooljetDatabase/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,7 @@ const Table = ({ collapseSidebar }) => {
cell.column.dataType !== 'boolean' &&
cell.value !== ''
}
tooltipClassName="tooltip-table-dashboard"
>
<div
className={`${
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/TooljetDatabase/Table/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -468,4 +468,12 @@
}

}
}

.tooltip-table-dashboard {
max-width: 500px !important;

.tooltip-inner {
max-width: 100% !important;
}
}
17 changes: 13 additions & 4 deletions frontend/src/_styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ button {

&:hover {
background: none !important;
border: none !important;
color: var(--slate12);
border: none !important;
color: var(--slate12);
}
}
}
Expand Down Expand Up @@ -8704,7 +8704,7 @@ tbody {
align-items: center;
color: var(--slate11);

.with-border{
.with-border {
border-bottom: 1px solid var(--slate5) !important;
}

Expand Down Expand Up @@ -10808,6 +10808,7 @@ tbody {
top: 5px;
cursor: pointer;
}

.copy-icon {
position: absolute;
right: 8px;
Expand Down Expand Up @@ -13017,6 +13018,14 @@ tbody {
}
}

.tjdb-cell-tooltip {
max-width: 420px !important;

.tooltip-inner {
max-width: 100% !important;
}
}

div.ds-svg-container svg {
padding: 2px;
}
}

0 comments on commit b130313

Please sign in to comment.