Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Misaligned footer section #930

Open
gtsiolis opened this issue Jan 4, 2021 · 2 comments
Open

Misaligned footer section #930

gtsiolis opened this issue Jan 4, 2021 · 2 comments
Assignees

Comments

@gtsiolis
Copy link
Contributor

gtsiolis commented Jan 4, 2021

Problem

Visiting directly https://www.gitpod.io/pricing/#self-hosted or reloading the pricing page causes a misalignment of the Explore Gitpod footer section.

See also relevant discussion (internal).

Expected Rendered
image image
@nisarhassan12 nisarhassan12 self-assigned this Jan 5, 2021
@nisarhassan12
Copy link
Contributor

It looks like a production issue i.e in development on the dev server preview I'm unable to reproduce this I tried re-loading and also visiting /pricing/#self-hosted directly many times.

@nisarhassan12
Copy link
Contributor

In production somehow the styles added via emotion does not get added i.e I don't see any auto-generated class like css-1aqcnu0-StyledPricingLinks on the section element. This might have something to do with SSR.

All of the stuff shown below in this styled block is not getting applied:

const StyledPricingLinks = styled.section`
  max-width: 850px;
  display: flex;
  align-items: center;
  margin: 0 auto;

  @media (max-width: ${sizes.breakpoints.md}) {
    padding-bottom: 8rem;
  }

  @media (max-width: 720px) {
    flex-direction: column;
    text-align: center;
    max-width: 550px;

    .btn-wrapper {
      justify-content: center;
    }
  }

  img {
    flex: 1;
    height: 12rem;

    @media (max-width: 720px) {
      max-width: 10rem;
      margin-bottom: 2rem;
    }
  }

  div {
    flex: 0 0 75%;
    padding-left: 4rem;
    border-left: ${borders.bold};

    @media (max-width: 720px) {
      border-left: none;
      padding-left: 0;
    }
  }

  h2 {
    margin-bottom: 5rem;
  }

  h3 {
    font-size: 110%;
    margin-bottom: 0.5rem;
  }
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants