diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f6f6f20c7c..ecb7b5d33c 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -13,12 +13,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + - name: Setup Node.js environment uses: actions/setup-node@v4 with: node-version: 16.19.0 - + - name: Cache dependencies uses: actions/cache@v3 with: @@ -26,32 +26,32 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - + - name: Install dependencies run: yarn install - + - name: Build the project run: yarn build - + - name: Get installed Playwright version id: playwright-version run: echo "version=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')" >> $GITHUB_OUTPUT - + - uses: actions/cache@v3 id: playwright-cache with: - path: '~/.cache/ms-playwright' - key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}' + path: "~/.cache/ms-playwright" + key: "${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}" restore-keys: | ${{ runner.os }}-playwright- - + - name: Install Playwright's dependencies if: steps.playwright-cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps - + - name: Run Playwright tests run: cd packages/e2e-react && npx playwright test - + - name: Upload Playwright report uses: actions/upload-artifact@v4 if: always() diff --git a/packages/react/src/views/AttachmentPreview/AttachmentPreview.js b/packages/react/src/views/AttachmentPreview/AttachmentPreview.js index 2c007f1a71..ae306f2f77 100644 --- a/packages/react/src/views/AttachmentPreview/AttachmentPreview.js +++ b/packages/react/src/views/AttachmentPreview/AttachmentPreview.js @@ -93,6 +93,9 @@ const AttachmentPreview = () => { @@ -160,6 +163,9 @@ const AttachmentPreview = () => { - - + + ) : null; } diff --git a/packages/react/src/views/Message/BubbleVariant/Bubble.styles.js b/packages/react/src/views/Message/BubbleVariant/Bubble.styles.js index 5f87c0b5e4..3bb1115040 100644 --- a/packages/react/src/views/Message/BubbleVariant/Bubble.styles.js +++ b/packages/react/src/views/Message/BubbleVariant/Bubble.styles.js @@ -167,6 +167,9 @@ export const getBubbleStylesMe = (theme) => { .ec-message-body:hover & { left: auto; right: calc(100% - 20px); + @media (max-width: 600px) { + right: 0; + } } `, @@ -181,7 +184,7 @@ export const getBubbleStylesMe = (theme) => { emojiPickerStylesMe: css` left: auto; - right: calc(100% + 5px); + right: 0; `, }; diff --git a/packages/react/src/views/ReportMessage/MessageReportWindow.js b/packages/react/src/views/ReportMessage/MessageReportWindow.js index 33957e72ea..5984bcc28e 100644 --- a/packages/react/src/views/ReportMessage/MessageReportWindow.js +++ b/packages/react/src/views/ReportMessage/MessageReportWindow.js @@ -18,7 +18,7 @@ const MessageReportWindow = ({ messageId }) => { { setDescription(e.target.value); }} diff --git a/packages/ui-elements/src/components/Modal/Modal.styles.js b/packages/ui-elements/src/components/Modal/Modal.styles.js index 6ee34dad82..e5d1d0c0b6 100644 --- a/packages/ui-elements/src/components/Modal/Modal.styles.js +++ b/packages/ui-elements/src/components/Modal/Modal.styles.js @@ -20,6 +20,27 @@ export const getModalstyles = (theme) => { top: 50%; left: 50%; transform: translate(-50%, -50%); + @media (max-width: 320px) { + width: 90%; + padding: 0.3rem; + border-radius: 10px; + } + @media (min-width: 321px) and (max-width: 390px) { + width: 85%; + border-radius: 10px; + } + @media (min-width: 391px) and (max-width: 480px) { + width: 70%; + border-radius: 15px; + } + @media (min-width: 481px) and (max-width: 600px) { + width: 60%; + border-radius: 10px; + } + @media (min-width: 601px) and (max-width: 768px) { + width: 65%; + border-radius: 12px; + } `, }; @@ -31,6 +52,9 @@ export const ModalContentStyles = { position: relative; overflow-y: auto; overflow-x: hidden; + @media (max-width: 320px) { + font-size: 1rem; + } `, }; @@ -65,6 +89,19 @@ export const ModalFooterStyles = { justify-content: flex-end; width: 100%; gap: 0.5rem; + @media (max-width: 420px) { + padding: 0.5rem; + flex-direction: column; + gap: 0.5rem; + } + button { + margin-left: 0.5rem; + @media (max-width: 420px) { + margin-left: 0; + width: 100%; + font-weight: 1.2rem; + } + } `, }; @@ -74,6 +111,20 @@ export const ModalHeaderStyles = { flex-direction: row; justify-content: space-between; width: 100%; + icon { + @media (max-width: 320px) { + size: 1rem; + } + @media (min-width: 321px) and (max-width: 390px) { + font-size: 1.3rem; + } + @media (min-width: 391px) and (max-width: 480px) { + font-size: 1.1rem; + } + @media (min-width: 481px) and (max-width: 600px) { + font-size: 1.2rem; + } + } `, }; @@ -94,6 +145,22 @@ export const ModalTitleStyles = { white-space: nowrap; display: flex; align-items: center; + @media (max-width: 320px) { + font-size: 1.2rem; + margin: 0.15rem !important; + } + @media (min-width: 321px) and (max-width: 390px) { + font-size: 1.2rem; + } + @media (min-width: 391px) and (max-width: 480px) { + font-size: 1.3rem; + } + @media (min-width: 481px) and (max-width: 600px) { + font-size: 1.3rem; + } + @media (min-width: 601px) and (max-width: 768px) { + font-size: 1.2rem; + } `, }; diff --git a/packages/ui-elements/src/components/Modal/ModalClose.js b/packages/ui-elements/src/components/Modal/ModalClose.js index 90f82f2d81..cae00b3802 100644 --- a/packages/ui-elements/src/components/Modal/ModalClose.js +++ b/packages/ui-elements/src/components/Modal/ModalClose.js @@ -18,6 +18,10 @@ export const ModalClose = ({