diff --git a/src/components/__tests__/__snapshots__/data-section.test.js.snap b/src/components/__tests__/__snapshots__/data-section.test.js.snap index 43064e82..3db2951a 100644 --- a/src/components/__tests__/__snapshots__/data-section.test.js.snap +++ b/src/components/__tests__/__snapshots__/data-section.test.js.snap @@ -210,12 +210,17 @@ exports[`Data Section matches snapshot 1`] = ` CAMP2Ex P-3 Remotely Sensed Aerosol Data + + 10.5067/Airborne/CAMP2Ex_Aerosol_AircraftRemoteSensing_P3_Data_1 + - - 10.5067/Airborne/CAMP2Ex_Aerosol_AircraftRemoteSensing_P3_Data_1 -
  • + + API Documentation + - - API Documentation -
  • @@ -165,12 +165,17 @@ exports[`Footer renders correctly 1`] = ` >
  • + + ADMG Website + - - ADMG Website -
  • + + IMPACT Website + - - IMPACT Website -
  • @@ -514,12 +514,17 @@ exports[`Footer renders correctly 1`] = ` , Built by + + Development Seed + - - Development Seed - .
    diff --git a/src/components/explore/products-table.js b/src/components/explore/products-table.js index 0163c840..7d0014bd 100644 --- a/src/components/explore/products-table.js +++ b/src/components/explore/products-table.js @@ -15,17 +15,14 @@ export function ProductsTable({ dois }) { css={` background: rgba(255, 255, 255, 0.06); border-spacing: 30px; + th:first-child { + padding-left: 1.25rem; + } `} > - - DATA PRODUCT - + DATA PRODUCT PLATFORMS INSTRUMENTS @@ -46,16 +43,24 @@ export function ProductsTable({ dois }) { href={`http://dx.doi.org/${doi.doi}`} css={` color: ${colors[NEGATIVE].linkText}; - display: block; + display: inline-flex; + flex-flow: row nowrap; + gap: 0.25rem; + align-items: center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; - padding-left: 30px; + padding-left: 1.5rem; + svg { + width: 12px; + height: 12px; + flex-shrink: 0; + } `} data-cy={`doi-link`} > - {" "} {doi.shortname} + {" "} diff --git a/src/components/external-link.js b/src/components/external-link.js index f4da8c4b..5286164d 100644 --- a/src/components/external-link.js +++ b/src/components/external-link.js @@ -3,7 +3,7 @@ import PropTypes from "prop-types" import { POSITIVE, NEGATIVE } from "../utils/constants" import { PropTypeIsUrl } from "../utils/helpers" -import { colors, breakpoints } from "../theme" +import { colors } from "../theme" import { ExternalLinkIcon } from "../icons" export default function ExternalLink({ @@ -23,14 +23,15 @@ export default function ExternalLink({ display: inline-flex; flex-flow: row nowrap; gap: 0.25rem; - align-items: baseline; - @media screen and (min-width: ${breakpoints["sm"]}) { - flex-flow: row wrap; + align-items: center; + svg { + width: 12px; + height: 12px; + flex-shrink: 0; } `} data-cy={`${id}-link`} > - {label || children} + ) } diff --git a/src/templates/instrument/__tests__/__snapshots__/overview-section.test.js.snap b/src/templates/instrument/__tests__/__snapshots__/overview-section.test.js.snap index 5a36ff51..1abccea5 100644 --- a/src/templates/instrument/__tests__/__snapshots__/overview-section.test.js.snap +++ b/src/templates/instrument/__tests__/__snapshots__/overview-section.test.js.snap @@ -134,12 +134,17 @@ exports[`Overview Section displays content 1`] = `
    + + http://dx.doi.org/10.5067/calibration + - - http://dx.doi.org/10.5067/calibration -
    @@ -183,12 +183,17 @@ exports[`Overview Section displays content 1`] = ` className="overview-section___StyledLi3-sc-1oemh85-0 hwjFCf" > + + http://www.example.com + - - http://www.example.com - @@ -291,12 +291,17 @@ exports[`Overview Section displays content 1`] = ` DOI: + + http://dx.doi.org/10.5067/instrument + - - http://dx.doi.org/10.5067/instrument -

    @@ -356,12 +356,17 @@ exports[`Overview Section displays content 1`] = ` className="list-link___StyledLi-sc-xxtxki-0 hZlwud" > + + test + - - test -
  • + + test2 + - - test2 -