diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a34c550ad..d0ea8e868 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,10 +23,10 @@ jobs: steps: - name: Repository checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Node.js setup - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '16.x' @@ -58,13 +58,13 @@ jobs: steps: - name: Repository checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install AWSCLI run: pip install --user awscli - name: Node.js setup - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '16.x' @@ -89,7 +89,7 @@ jobs: appDomain: https://${{ secrets.HOST_NAME }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-to-assume: ${{ secrets.AWS_IAM_ROLE_ARN }} diff --git a/embed/embed.js b/embed/embed.js index 6839dbfa1..0e1f13682 100644 --- a/embed/embed.js +++ b/embed/embed.js @@ -18,7 +18,8 @@ iframe.style.minHeight = '450px'; iframe.setAttribute('allowtransparency', 'true'); iframe.setAttribute('scrolling', 'no'); - iframe.src = [baseUrl, '#', dataLang, dataBook].join('/'); + iframe.src = + [baseUrl, '#', dataLang, dataBook].join('/') + '?embedded=true'; knowGodEmbed.appendChild(iframe); diff --git a/package.json b/package.json index bf148a669..50881dac7 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@angular/platform-browser": "^13.4.0", "@angular/platform-browser-dynamic": "^13.4.0", "@angular/router": "^13.4.0", - "@cruglobal/godtools-shared": "0.9.1", + "@cruglobal/godtools-shared": "0.9.2", "@rails/actioncable": "^7.0.0", "core-js": "^2.5.4", "eslint-config-prettier": "^8.8.0", diff --git a/src/app/_tests/mocks.ts b/src/app/_tests/mocks.ts index 438dbf330..c4be745f3 100644 --- a/src/app/_tests/mocks.ts +++ b/src/app/_tests/mocks.ts @@ -17,7 +17,8 @@ import { MultiselectOption, Flow, FlowItem, - Card + Card, + Spacer } from 'src/app/services/xml-parser-service/xmp-parser.service'; import { org } from '@cruglobal/godtools-shared'; @@ -542,3 +543,14 @@ export const mockPageComponent = { } } }; + +export const mockSpacer = (height = 100): Spacer => { + return { + height, + mode: { + name: 'FIXED', + ordinal: 0 + }, + ...standardTypeValues() + }; +}; diff --git a/src/app/header/header.component.css b/src/app/header/header.component.css index 0b15f9676..6163785b1 100755 --- a/src/app/header/header.component.css +++ b/src/app/header/header.component.css @@ -28,7 +28,8 @@ flex-direction: row; height: 100%; align-items: center; - justify-content: center; + justify-content: center; + cursor: pointer; } #homeHeader > .bs-container > .language-switcher > div.selector > img { @@ -101,7 +102,12 @@ } #languageSwitchModal > div.modal-content { - margin: 5%; + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 90%; background: #ffffff; border-radius: 6px; height: 90%; @@ -112,10 +118,9 @@ #languageSwitchModal > div.modal-content > div.modal-close { width: 100%; height: 36px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: flex-end; + display: block; + text-align: right; + margin-top: 10px; } #languageSwitchModal > div.modal-content > div.modal-close > i { @@ -127,24 +132,25 @@ font-weight: 400; } -#languageSwitchModal > div.modal-content > div.languages-grid { - height: calc(100% - 48px); +#languageSwitchModal > div.modal-content > ul.languages-grid { width: 100%; overflow-y: scroll; - display: flex; - flex-direction: row; - flex-wrap: wrap; + columns: 4; + column-gap: 10px; + margin: 5px 0 0 0; + padding: 0 15px 5px 5px; } -#languageSwitchModal > div.modal-content > div.languages-grid > div.language { - width: calc(25% - 8px); +#languageSwitchModal > div.modal-content > ul.languages-grid > li.language { height: 36px; - margin: 4px 4px; + width: 100%; + display: inline-flex; + margin: 4px; + padding: 0 8px; + align-items: center; font-size: 13px; - color: #666666; - display: flex; + color: #666; align-items: center; - padding: 0 8px; white-space: nowrap; overflow: hidden; border-radius: 4px; @@ -152,8 +158,26 @@ cursor: pointer; } -#languageSwitchModal > div.modal-content > div.languages-grid > div.language:hover { - background-color: rgba(0, 0, 0, 0.05); +#languageSwitchModal + > div.modal-content + > ul.languages-grid + > li.language:hover { + background-color: rgba(0, 0, 0, 0.05); +} + +#languageSwitchModal + > div.modal-content + > ul.languages-grid + > li.language:active { + background-color: rgba(0, 0, 0, 0.1); +} + +#languageSwitchModal > div.modal-content > div.modal-close > i:hover { + opacity: 0.4; +} + +#languageSwitchModal > div.modal-content > div.modal-close > i:active { + opacity: 0.5; } /***** Responsive *****/ @@ -170,8 +194,8 @@ font-size: 14px; } - #languageSwitchModal > div.modal-content > div.languages-grid > div.language { - width: calc(50% - 8px); + #languageSwitchModal > div.modal-content > ul.languages-grid { + columns: 2; } } @@ -194,7 +218,7 @@ } #homeHeader .bs-container { - position: relative; + position: relative; } #homeHeader .language-switcher { @@ -203,7 +227,6 @@ top: 0; bottom: 0; font-size: 14px; - cursor: pointer; } } @media screen and (min-width: 992px) { diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index 888aa2bb2..9ad0b4624 100755 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -61,14 +61,14 @@