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

fix(theme-default): samesite css #987

Closed
wants to merge 1 commit into from

Conversation

rottenpen
Copy link

Description

Linked with this feature request issue vuepress/ecosystem#3

Note

mobile:
image
pc:
image

@rottenpen rottenpen changed the title fix: samesite css fix(theme-default): samesite css Jul 16, 2022
@meteorlxy
Copy link
Member

Could you help to confirm if the fix valid when there is a search input?

For example, enabling @vuepress/plugin-search or @vuepress/plugin-docsearch

@rottenpen
Copy link
Author

its not good when there is a search input. and i fix it. @meteorlxy
search input:
image
image
default:
image
image

@meteorlxy
Copy link
Member

I saw you set the width to a fixed value. Have you tested with navbar items?

@rottenpen
Copy link
Author

rottenpen commented Jul 19, 2022

I saw you set the width to a fixed value. Have you tested with navbar items?

what is navbar items ? multi navbar items?
or this ⬇️?
image

@Mister-Hope
Copy link
Member

image

I think your fix is invalid.

@@ -15,10 +15,15 @@
}

.site-name {
display: inline-block;
width: calc(100vw - 18rem);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously because of dynamic contents in navbar, we should never set this to a fixed value.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh,i see. Is it better to limit the navbar-items-wrapper and navbarBrand width with js?
conflict between the two when their too long

@rottenpen rottenpen closed this Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants