Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/tapis-project/tapis-ui into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Aug 27, 2024
2 parents 69f5453 + 95d13ba commit 5443c67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app/MlHub/Models/ModelDetails.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@
.download-url-button {
height: 40px;
}

.modal {
overflow-y: auto;
max-height: 90vh;
}
5 changes: 4 additions & 1 deletion src/app/MlHub/Models/ModelDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ const Buttons: React.FC<{ model: Models.ModelFullInfo }> = ({ model }) => {
</Button>
{currentModal === 'modelcard' && (
<GenericModal
size="lg"
scrollable
className={`${styles['modal']}`}
toggle={() => {
setCurrentModal(undefined);
}}
Expand All @@ -172,7 +175,7 @@ const Buttons: React.FC<{ model: Models.ModelFullInfo }> = ({ model }) => {
{data2?.result?.model_card === undefined ? (
'no content available'
) : (
<>{data2?.result?.model_card}</>
<Markdown>{data2?.result?.model_card}</Markdown>
)}
</div>
}
Expand Down

0 comments on commit 5443c67

Please sign in to comment.