mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix layout scroll & overflow
This commit is contained in:
parent
c7e15a3bb2
commit
2b4aec9337
@ -29,8 +29,6 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
&.electron {
|
&.electron {
|
||||||
.ant-layout-sider {
|
.ant-layout-sider {
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
@ -44,8 +42,6 @@ body {
|
|||||||
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@ -57,8 +53,6 @@ html {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
background-color: var(--background-color-primary) !important;
|
background-color: var(--background-color-primary) !important;
|
||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@ -68,8 +62,6 @@ html {
|
|||||||
text-rendering: optimizeLegibility !important;
|
text-rendering: optimizeLegibility !important;
|
||||||
|
|
||||||
font-family: var(--fontFamily);
|
font-family: var(--fontFamily);
|
||||||
font-size: calc(16px * var(--fontScale));
|
|
||||||
|
|
||||||
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
@ -114,13 +106,12 @@ html {
|
|||||||
|
|
||||||
&.centered-content {
|
&.centered-content {
|
||||||
.content_layout {
|
.content_layout {
|
||||||
margin: auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
|
|
||||||
padding-left: 0;
|
padding: 0;
|
||||||
padding-right: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -166,14 +157,14 @@ svg {
|
|||||||
.app_layout {
|
.app_layout {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
width: 100%;
|
width: 100vw;
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
background-color: rgba(var(--layoutBackgroundColor), var(--backgroundColorTransparency)) !important;
|
background-color: rgba(var(--layoutBackgroundColor), var(--backgroundColorTransparency)) !important;
|
||||||
backdrop-filter: blur(var(--backgroundBlur));
|
backdrop-filter: blur(var(--backgroundBlur));
|
||||||
}
|
}
|
||||||
@ -181,17 +172,15 @@ svg {
|
|||||||
.content_layout {
|
.content_layout {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
overflow: visible;
|
|
||||||
|
|
||||||
overflow-y: overlay;
|
|
||||||
overflow-x: visible;
|
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
transition: all 150ms ease-in-out;
|
transition: all 150ms ease-in-out;
|
||||||
|
|
||||||
@ -352,69 +341,6 @@ svg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.app_modal_wrapper {
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
transition: all 150ms ease-in-out;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
background-color: rgba(var(--bg_color_6), 0.5);
|
|
||||||
|
|
||||||
backdrop-filter: blur(@modal_background_blur);
|
|
||||||
-webkit-backdrop-filter: blur(@modal_background_blur);
|
|
||||||
|
|
||||||
.app_modal_content {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.app_modal_content {
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
transition: all 150ms ease-in-out;
|
|
||||||
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(100px);
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
// fixments
|
|
||||||
.postCreator {
|
|
||||||
box-shadow: @card-shadow;
|
|
||||||
-webkit-box-shadow: @card-shadow;
|
|
||||||
-moz-box-shadow: @card-shadow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.searcher {
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
width: 48vw;
|
|
||||||
height: 80vh;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.inline_field {
|
.inline_field {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user