mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Merge pull request #273 from glyptodon/dialog-overflow
GUAC-1349: Ensure file transfer dialog does not overflow viewport bounds.
This commit is contained in:
@@ -28,14 +28,94 @@
|
|||||||
z-index: 20;
|
z-index: 20;
|
||||||
|
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
padding: 0.5em;
|
|
||||||
|
|
||||||
width: 4in;
|
width: 4in;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
max-height: 3in;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#file-transfer-dialog .transfer-manager {
|
#file-transfer-dialog .transfer-manager {
|
||||||
|
|
||||||
|
/* IE10 */
|
||||||
|
display: -ms-flexbox;
|
||||||
|
-ms-flex-align: stretch;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
|
||||||
|
/* Ancient Mozilla */
|
||||||
|
display: -moz-box;
|
||||||
|
-moz-box-align: stretch;
|
||||||
|
-moz-box-orient: vertical;
|
||||||
|
|
||||||
|
/* Ancient WebKit */
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-align: stretch;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
|
/* Old WebKit */
|
||||||
|
display: -webkit-flex;
|
||||||
|
-webkit-align-items: stretch;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
|
||||||
|
/* W3C */
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
max-width: inherit;
|
||||||
|
max-height: inherit;
|
||||||
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.5);
|
border: 1px solid rgba(0, 0, 0, 0.5);
|
||||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#file-transfer-dialog .transfer-manager .header {
|
||||||
|
-ms-flex: 0 0 auto;
|
||||||
|
-moz-box-flex: 0;
|
||||||
|
-webkit-box-flex: 0;
|
||||||
|
-webkit-flex: 0 0 auto;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#file-transfer-dialog .transfer-manager .transfer-manager-body {
|
||||||
|
|
||||||
|
-ms-flex: 1 1 auto;
|
||||||
|
-moz-box-flex: 1;
|
||||||
|
-webkit-box-flex: 1;
|
||||||
|
-webkit-flex: 1 1 auto;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Shrink maximum height if viewport is too small for default 3in dialog.
|
||||||
|
*/
|
||||||
|
@media all and (max-height: 3in) {
|
||||||
|
|
||||||
|
#file-transfer-dialog {
|
||||||
|
max-height: 1.5in;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If viewport is too small for even the 1.5in dialog, fit all available space.
|
||||||
|
*/
|
||||||
|
@media all and (max-height: 1.5in) {
|
||||||
|
|
||||||
|
#file-transfer-dialog {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#file-transfer-dialog .transfer-manager {
|
||||||
|
position: absolute;
|
||||||
|
left: 0.5em;
|
||||||
|
top: 0.5em;
|
||||||
|
right: 0.5em;
|
||||||
|
bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -27,15 +27,17 @@
|
|||||||
<button ng-click="clearCompletedTransfers()">{{'CLIENT.ACTION_CLEAR_COMPLETED_TRANSFERS' | translate}}</button>
|
<button ng-click="clearCompletedTransfers()">{{'CLIENT.ACTION_CLEAR_COMPLETED_TRANSFERS' | translate}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Sent/received files files -->
|
<!-- Sent/received files -->
|
||||||
<div class="transfers">
|
<div class="transfer-manager-body">
|
||||||
<guac-file-transfer
|
<div class="transfers">
|
||||||
transfer="upload"
|
<guac-file-transfer
|
||||||
ng-repeat="upload in client.uploads">
|
transfer="upload"
|
||||||
</guac-file-transfer><guac-file-transfer
|
ng-repeat="upload in client.uploads">
|
||||||
transfer="download"
|
</guac-file-transfer><guac-file-transfer
|
||||||
ng-repeat="download in client.downloads">
|
transfer="download"
|
||||||
</guac-file-transfer>
|
ng-repeat="download in client.downloads">
|
||||||
|
</guac-file-transfer>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user