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

fixed next@13 image scaling issues #8175

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/components/content/AdvancedReactCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ export function AdvancedReactCta(props: HTMLAttributes<HTMLElement>) {
<Image
src={wesBosCta}
alt="Wes Bos Avatar"
width={275}
height={900}
css={{
maxWidth: '100%',
height: 'auto',
objectFit: 'cover',
borderRadius: '1rem',
}}
Expand Down
11 changes: 10 additions & 1 deletion docs/components/content/CommunityCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ export function CommunityCta(props: HTMLAttributes<HTMLElement>) {
},
}}
>
<Image src={communityMap} alt="A map of our awesome contributors" width={500} />
<Image
src={communityMap}
alt="A map of our awesome contributors"
width={1518}
height={928}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
<div
css={{
Expand Down
35 changes: 30 additions & 5 deletions docs/pages/for-content-management.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ export default function ForOrganisations() {
<Image
src={contentManagement1}
alt="Dropdown selector from Keystone’s Admin UI showing different user roles: Administrator, Editor, Content Manager, Author"
width={500}
width={2034}
height={1300}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down Expand Up @@ -172,7 +177,12 @@ export default function ForOrganisations() {
<Image
src={contentManagement2}
alt="Overlay of Admin UI field panes showing fields for a Post content type. Promotional text overlays show: custom and virtual fields; flexible relationships; powerful sort & filtering."
width={500}
width={1254}
height={1107}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down Expand Up @@ -213,7 +223,12 @@ export default function ForOrganisations() {
<Image
src={dsGeneration}
alt="Keystone Document field containing Rich Text content including Twitter embed components, and syntax highlighted code block"
width={500}
width={1854}
height={1535}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</div>
Expand Down Expand Up @@ -332,7 +347,12 @@ export default function ForOrganisations() {
<Image
src={contentManagement3}
alt="2 Admin UI panes showing creation of relationships in place. Author window opens up a Create Post window where Post categories can be selected."
width={500}
width={2007}
height={1727}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down Expand Up @@ -387,7 +407,12 @@ export default function ForOrganisations() {
<Image
src={contentManagement4}
alt="Admin UI browser window showing a tabular a list of Articles with filtration applied to the list. Filter by published status."
width={400}
width={1827}
height={1516}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down
14 changes: 12 additions & 2 deletions docs/pages/for-developers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ export default function ForDevelopers() {
<Image
src={editorStorytelling}
alt="Overlay of Admin UI field panes showing fields for a Post content type. Promotional text overlays show: extensive field options; flexible relationships; powerful sort & filtering."
width={500}
width={1975}
height={1572}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down Expand Up @@ -254,7 +259,12 @@ export default function ForDevelopers() {
<Image
src={richTextEditor}
alt="Keystone Document field containing Rich Text content including Twitter embed component, and syntax highlighted code block."
width={500}
width={1901}
height={1629}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</SideBySideSection>
Expand Down
14 changes: 12 additions & 2 deletions docs/pages/for-organisations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ export default function ForOrganisations() {
<Image
src={editor}
alt="Two application windows. One shows an IDE with Keystone schema code to configure fields. The other shows content fields in Keystone Admin UI"
width={500}
width={1956}
height={1845}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</Section>
Expand Down Expand Up @@ -282,7 +287,12 @@ export default function ForOrganisations() {
<Image
src={dataIntegrity}
alt="2 application panes. One displays a database configuration app with DB columns and rows containing content. The other displays the same column and row content in Keystone Admin UI."
width={500}
width={2044}
height={1557}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</Section>
Expand Down
21 changes: 18 additions & 3 deletions docs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,12 @@ export const lists = {
<Image
src={contentEditorMockui}
alt="Overlay of Admin UI field panes showing fields for a Post content type. Promotional text overlays show: custom & virtual fields; flexible relationships; powerful sort & filtering."
width={500}
width={1130}
height={997}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</li>
Expand Down Expand Up @@ -622,7 +627,12 @@ export const lists = {
<Image
src={deployTargets}
alt="Deploy targets for Keystone are any and all services you've heard of like Digital Ocean, Render, Heroku, Vercel, Google Cloud, AWS, Azure etc"
width={500}
width={1896}
height={1339}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</li>
Expand Down Expand Up @@ -854,7 +864,12 @@ export const lists = {
<Image
src={docEditorHome}
alt="Browser window of the Keystone Document Field showing demo text explaining how the field can be used."
width={1000}
width={3183}
height={731}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>
</Section>
Expand Down
11 changes: 10 additions & 1 deletion docs/pages/why-keystone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,16 @@ export default function WhyKeystonePage() {
margin: '1rem 0',
}}
>
<Image src={adminUi} alt="Depiction of Keystone’s Admin UI" width={900} />
<Image
src={adminUi}
alt="Depiction of Keystone’s Admin UI"
width={3710}
height={2195}
css={{
maxWidth: '100%',
height: 'auto',
}}
/>
</div>

<ul
Expand Down