Skip to content

Commit

Permalink
fix: File extension is hidden in file field when editing object in mo…
Browse files Browse the repository at this point in the history
…dal dialog in data browser (#2472)
  • Loading branch information
AshishBarvaliya authored Jun 30, 2023
1 parent a3af032 commit 8df4e4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/dashboard/Data/Browser/Browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,17 @@ body:global(.expanded) {
width: calc(100% - 280px);
float: left;
}

.editRowDialogFileCell {
max-width: 100%;
padding: 25px;
span {
display: flex;
span {
width: 90%;
}
& a {
position: relative;
}
}
}
2 changes: 1 addition & 1 deletion src/dashboard/Data/Browser/EditRowDialog.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default class EditRowDialog extends React.Component {
let file = selectedObject[name];
let fileName = file && file.url() ? getFileName(file) : '';
inputComponent = (
<div style={{ padding: '25px' }}>
<div className={[styles.editRowDialogFileCell]}>
{file && <Pill value={fileName} fileDownloadLink={file.url()} />}
<div style={{ cursor: 'pointer' }}>
<Pill
Expand Down

0 comments on commit 8df4e4d

Please sign in to comment.