Skip to content

Commit

Permalink
ui: Move embed styling to embed.overrides css
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 committed Apr 23, 2024
1 parent 37850a4 commit 7f1a32c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
1 change: 0 additions & 1 deletion ui/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ export const config = {
required: [
"internal_location_pid",
"barcode",
"shelf",
"status",
"document_pid",
"circulation_restriction",
Expand Down
9 changes: 1 addition & 8 deletions ui/src/overridden/backoffice/Items/ItemCirculationShelf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ export const ItemCirculationShelf = ({ metadata }) => {
return (
<Grid.Column width={6}>
<>
<Embed
active
url={shelfLink(metadata.shelf, true)}
style={{
"padding-bottom": "30%",
"pointer-events": "none",
}}
/>
<Embed active url={shelfLink(metadata.shelf, true)} />
<Button
as="a"
smooth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,8 @@ export class DocumentCirculationExtras extends React.Component {
return (
<>
<Divider />
<Header as="h4" className="mt-15" content="Find it on shelf" />
<Embed
active
url={shelfLink(shelfNumber, true)}
style={{
"padding-bottom": "30%",
"pointer-events": "none",
}}
/>
{/* <Header as="h4" className="mt-15" content="Find it on shelf" /> */}
<Embed active url={shelfLink(shelfNumber, true)} />
<Button
as="a"
smooth
Expand All @@ -84,7 +77,7 @@ export class DocumentCirculationExtras extends React.Component {
color="blue"
fluid
>
Open MapCERN
Find it on shelf
</Button>
</>
);
Expand Down
4 changes: 4 additions & 0 deletions ui/src/semantic-ui/site/modules/embed.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*******************************
Site Overrides
*******************************/
.ui.embed{
padding-bottom: 30%;
pointer-events: none;
}

0 comments on commit 7f1a32c

Please sign in to comment.