Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve captions appearance when there is also a CTA #13477

Merged
merged 8 commits into from
Oct 27, 2023
6 changes: 3 additions & 3 deletions packages/output/src/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ function OutputPage({
aspect-ratio={ASPECT_RATIO}
class="grid-layer align-bottom"
>
<div className="captions-area">
{/* `backgroundColor` is added only for testing purpose. */}
<div className="captions-area" style={{ backgroundColor: 'blue' }}>
{videoCaptions.map((captionId) => (
<amp-story-captions
key={captionId}
id={captionId}
layout="fixed-height"
height="100"
layout="container"
/>
))}
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/output/src/utils/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function CustomStyles() {
amp-story-grid-layer.align-bottom {
align-content: end;
padding: 0;
max-height: calc(100vh - 148px);
AnuragVasanwala marked this conversation as resolved.
Show resolved Hide resolved
}

.captions-area {
Expand Down
Loading