diff --git a/libs/feature/record/src/lib/data-apis/data-apis.component.css b/libs/feature/record/src/lib/data-apis/data-apis.component.css index e69de29bb2..eb3aacdab0 100644 --- a/libs/feature/record/src/lib/data-apis/data-apis.component.css +++ b/libs/feature/record/src/lib/data-apis/data-apis.component.css @@ -0,0 +1,18 @@ +/* + this computes the space outside of the main column when using `container-lg px-4` + FIXME: this component is dependant on the datahub context and should be in the app instead +*/ +:host { + --container-outside-width: calc(50vw - 1024px / 2 + 1rem); +} +@media (max-width: 1024px) { + :host { + --container-outside-width: 1rem; + } +} + +gn-ui-carousel { + display: block; + margin-left: calc(-1 * var(--container-outside-width)); + margin-right: calc(-1 * var(--container-outside-width)); +} diff --git a/libs/feature/record/src/lib/data-apis/data-apis.component.html b/libs/feature/record/src/lib/data-apis/data-apis.component.html index 4aa7bd198b..7f5d164eec 100644 --- a/libs/feature/record/src/lib/data-apis/data-apis.component.html +++ b/libs/feature/record/src/lib/data-apis/data-apis.component.html @@ -4,13 +4,22 @@ > record.metadata.api

-
-
+ diff --git a/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.css b/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.css index e69de29bb2..eb3aacdab0 100644 --- a/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.css +++ b/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.css @@ -0,0 +1,18 @@ +/* + this computes the space outside of the main column when using `container-lg px-4` + FIXME: this component is dependant on the datahub context and should be in the app instead +*/ +:host { + --container-outside-width: calc(50vw - 1024px / 2 + 1rem); +} +@media (max-width: 1024px) { + :host { + --container-outside-width: 1rem; + } +} + +gn-ui-carousel { + display: block; + margin-left: calc(-1 * var(--container-outside-width)); + margin-right: calc(-1 * var(--container-outside-width)); +} diff --git a/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.html b/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.html index 7dae5599f6..dd54da0292 100644 --- a/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.html +++ b/libs/feature/record/src/lib/data-otherlinks/data-otherlinks.component.html @@ -4,10 +4,22 @@ > record.metadata.links

-
+ -
+