mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix SettingsModal proportions
This commit is contained in:
@@ -4,8 +4,11 @@ import Modal from 'react-modal';
|
||||
export const StyledModal = styled(Modal)`
|
||||
.panel {
|
||||
top: 60px;
|
||||
width: 330px;
|
||||
left: 50%;
|
||||
width: 400px;
|
||||
height: auto;
|
||||
max-height: 80%;
|
||||
left: calc(50% - 25px);
|
||||
overflow-y: auto;
|
||||
margin-left: -178px;
|
||||
position: absolute;
|
||||
padding: 2px 5px 5px;
|
||||
@@ -13,6 +16,14 @@ export const StyledModal = styled(Modal)`
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.panel {
|
||||
width: 320px !important;
|
||||
max-height: 60% !important;
|
||||
left: calc(50% + 15px) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
@@ -142,7 +153,7 @@ export const StyledModal = styled(Modal)`
|
||||
background-color: currentColor;
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 13px; /* Change this value according to your needs */
|
||||
top: 13px;
|
||||
}
|
||||
|
||||
.settings-input::after {
|
||||
@@ -153,7 +164,7 @@ export const StyledModal = styled(Modal)`
|
||||
background-color: currentColor;
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 1px; /* Change this value according to your needs */
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user