mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Merge pull request #234 from marshmalien/fix/3403-wide-view-only-survey-modal
Shrink view-only survey modal
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
transform: translate(-50%, 0%);
|
transform: translate(-50%, 0%);
|
||||||
width: ~"calc(100vw - 50px)" !important;
|
|
||||||
|
|
||||||
.ui-dialog-buttonpane, .ui-dialog-titlebar {
|
.ui-dialog-buttonpane, .ui-dialog-titlebar {
|
||||||
display:none;
|
display:none;
|
||||||
@@ -74,12 +73,6 @@
|
|||||||
flex: 0 0 90%;
|
flex: 0 0 90%;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.SurveyMaker-previewPanel--viewOnly {
|
|
||||||
flex: 0 0 1155px;
|
|
||||||
max-width: 1155px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SurveyMaker-separatorPanel {
|
.SurveyMaker-separatorPanel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 0 0 51px;
|
flex: 0 0 51px;
|
||||||
@@ -247,3 +240,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.SurveyMaker-dialog {
|
||||||
|
max-width: 100vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ export default
|
|||||||
title = params.title,
|
title = params.title,
|
||||||
element,
|
element,
|
||||||
target = (mode==='survey-taker') ? 'password-modal' : "survey-modal-dialog",
|
target = (mode==='survey-taker') ? 'password-modal' : "survey-modal-dialog",
|
||||||
width = params.scope.can_edit ? 1200 : 600;
|
width = params.scope.can_edit ? 'calc(100vw - 50px)' : 600;
|
||||||
|
|
||||||
|
|
||||||
CreateDialog({
|
CreateDialog({
|
||||||
|
|||||||
Reference in New Issue
Block a user