mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-724: Leverage DOM rather than CSS to show/hide connection tile headers.
CSS, though clean, results in delays in element size changes. When switching between a view that has tile headers and a view that does not, this manifests as visible "popping" as client displays are initially sized to fit the area without the header followed by the area with the header. Leveraging AngularJS directly ensures that such changes occur in lockstep with the connection process.
This commit is contained in:
@@ -80,19 +80,6 @@
|
||||
padding: 0 0.25em;
|
||||
font-size: 0.8em;
|
||||
color: white;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tiled-client-grid.multiple-clients .client-tile .client-tile-name {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tiled-client-grid.multiple-clients .client-tile {
|
||||
border: 1px solid #444;
|
||||
}
|
||||
|
||||
.tiled-client-grid .client-tile.focused {
|
||||
border-color: #3161a9;
|
||||
}
|
||||
|
||||
.tiled-client-grid .client-tile.focused .client-tile-name {
|
||||
|
@@ -1,6 +1,4 @@
|
||||
<div class="tiled-client-grid"
|
||||
ng-class="{ 'multiple-clients' : hasMultipleClients(clientGroup) }">
|
||||
|
||||
<div class="tiled-client-grid">
|
||||
<div class="tiled-client-row" ng-repeat="clientRow in getClientGrid(clientGroup)">
|
||||
<div class="tiled-client-cell" ng-repeat="client in clientRow">
|
||||
|
||||
@@ -10,7 +8,10 @@
|
||||
'shared' : isShared(client)
|
||||
}"
|
||||
guac-click="getFocusAssignmentCallback(client)">
|
||||
<h3 class="client-tile-name"><img class="client-tile-shared-indicator" src="images/share-white.svg"> {{ client.title }}</h3>
|
||||
<h3 class="client-tile-name" ng-if="hasMultipleClients(clientGroup)">
|
||||
<img class="client-tile-shared-indicator" src="images/share-white.svg">
|
||||
{{ client.title }}
|
||||
</h3>
|
||||
<guac-client client="client" emulate-absolute-mouse="emulateAbsoluteMouse"></guac-client>
|
||||
|
||||
<!-- Client-specific status/error dialog -->
|
||||
@@ -19,5 +20,4 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user