Skip to content

Commit

Permalink
fix: UILD-421: Multiple instances: style, navigation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s3fs committed Dec 9, 2024
1 parent e797005 commit b85b351
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/FullDisplay/FullDisplay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.preview-contents-container {
height: 100%;
overflow-y: scroll;
padding: 0.938rem;
padding: 0.938rem 0;
padding-bottom: 4rem;
}

Expand Down
20 changes: 15 additions & 5 deletions src/components/InstancesList/InstancesList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,29 @@
}

tr {
padding: 0.5rem 0
padding: 0.5rem 0;
}

.button-primary {
margin: 0.4rem 0;
.publisher,
.publication-date {
max-width: 10rem;
}

.button-link {
text-decoration: underline;
.title {
.button-link {
text-decoration: underline;
text-align: left;
height: 100%;
}
}

.edit-ctl {
width: 0.5rem;

.button-primary {
margin: 0.4rem 0;
font-weight: 600;
}
}

td {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Preview/TitledPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const TitledPreview = ({
);

const navigateToOwnEditPage = () => selectedOwnId && navigateToEditPage(generateEditResourceUrl(selectedOwnId));
const navigateToRefEditPage = () => refId && navigateToEditPage(generateEditResourceUrl(refId));

return (
<div className="titled-preview">
Expand All @@ -66,7 +65,7 @@ export const TitledPreview = ({
type={ButtonType.Primary}
className="toggle-entity-edit"
data-testid="edit-self-as-ref"
onClick={navigateToRefEditPage}
onClick={navigateToOwnEditPage}
>
<FormattedMessage id="ld.editWork" />
</Button>
Expand Down

0 comments on commit b85b351

Please sign in to comment.