feat: Add PWA support to subdomains (#1915)

* fix: Remove overscroll
* Remove title from fixed header in PWA as it's displayed immediately above in application title
This commit is contained in:
Tom Moor 2021-02-21 13:32:49 -08:00 committed by GitHub
parent d277d80323
commit a96993fda9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -94,6 +94,11 @@ const Title = styled(Flex)`
${breakpoint("tablet")`
flex-grow: 1;
`};
@media (display-mode: standalone) {
overflow: hidden;
flex-grow: 0 !important;
}
`;
const Actions = styled(Flex)`

View File

@ -31,7 +31,7 @@ export default createGlobalStyle`
font-size: 16px;
line-height: 1.5;
color: ${(props) => props.theme.text};
overscroll-behavior-y: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;

View File

@ -66,7 +66,8 @@ module.exports = {
short_name: "Outline",
background_color: "#fff",
theme_color: "#fff",
start_url: process.env.URL,
start_url: "/",
publicPath: "/static/",
display: "standalone",
icons: [
{