Update CoWebsite Jitsi

- Change Jitsi meeting icon
 - Add Jitsi meeting information

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant
2022-02-20 23:28:27 +01:00
parent 1f7302be95
commit 23f7d6f08f
6 changed files with 163 additions and 128 deletions
@@ -188,10 +188,19 @@
/> />
</rect> </rect>
</svg> </svg>
<!-- TODO use trigger message property -->
<div class="cowebsite-hover"
class:hide={!isJitsi}
style="width: max-content;">
<label>Open / Close Jitsi meeting!</label>
</div>
</div> </div>
<style lang="scss"> <style lang="scss">
.cowebsite-thumbnail { .cowebsite-thumbnail {
cursor: url("../../../style/images/cursor_pointer.png"), pointer;
position: relative; position: relative;
padding: 0; padding: 0;
background-color: rgba(#000000, 0.6); background-color: rgba(#000000, 0.6);
@@ -236,6 +245,11 @@
height: 40px; height: 40px;
} }
.cowebsite-hover {
top: -4px;
left: 55px;
}
animation: shake 0.35s ease-in-out; animation: shake 0.35s ease-in-out;
} }
@@ -320,5 +334,27 @@
padding: 7px; padding: 7px;
} }
} }
&:hover {
.cowebsite-hover {
display: block;
width: max-content !important;
}
}
.cowebsite-hover {
display: none;
position: absolute;
background-color: rgba(0, 0, 0, 0.6);
top: -30px;
left: -4px;
width: 0!important;
min-height: 20px;
transition: all 0.2s ease;
overflow: hidden;
color: white;
padding: 2px;
border-radius: 4px;
}
} }
</style> </style>
@@ -24,6 +24,7 @@
left: 2%; left: 2%;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
overflow: visible;
&.vertical { &.vertical {
height: auto !important; height: auto !important;
@@ -31,8 +32,6 @@
bottom: auto !important; bottom: auto !important;
left: auto !important; left: auto !important;
position: relative; position: relative;
overflow-x: hidden;
overflow-y: auto;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-top: 4px; padding-top: 4px;
+1 -1
View File
@@ -95,7 +95,7 @@ export abstract class Character extends Container implements OutlineableInterfac
fontFamily: '"Press Start 2P"', fontFamily: '"Press Start 2P"',
fontSize: "8px", fontSize: "8px",
strokeThickness: 2, strokeThickness: 2,
stroke: "gray", stroke: "black",
metrics: { metrics: {
ascent: 20, ascent: 20,
descent: 10, descent: 10,
+1 -1
View File
@@ -13,7 +13,7 @@ export class ActivatablesManager {
private canSelectByDistance: boolean = true; private canSelectByDistance: boolean = true;
private readonly outlineColor = 0xffff00; private readonly outlineColor = 0xf9e81e;
private readonly directionalActivationPositionShift = 50; private readonly directionalActivationPositionShift = 50;
constructor(currentPlayer: Player) { constructor(currentPlayer: Player) {
+1 -1
View File
@@ -1687,7 +1687,7 @@ ${escapedMessage}
} }
}); });
this.CurrentPlayer.on(Phaser.Input.Events.POINTER_OVER, (pointer: Phaser.Input.Pointer) => { this.CurrentPlayer.on(Phaser.Input.Events.POINTER_OVER, (pointer: Phaser.Input.Pointer) => {
this.CurrentPlayer.pointerOverOutline(0x00ffff); this.CurrentPlayer.pointerOverOutline(0x365dff);
}); });
this.CurrentPlayer.on(Phaser.Input.Events.POINTER_OUT, (pointer: Phaser.Input.Pointer) => { this.CurrentPlayer.on(Phaser.Input.Events.POINTER_OUT, (pointer: Phaser.Input.Pointer) => {
this.CurrentPlayer.pointerOutOutline(); this.CurrentPlayer.pointerOutOutline();
+1 -1
View File
@@ -56,7 +56,7 @@ export class ActionableItem implements ActivatableInterface {
this.getOutlinePlugin()?.add(this.sprite, { this.getOutlinePlugin()?.add(this.sprite, {
thickness: 2, thickness: 2,
outlineColor: 0xffff00, outlineColor: 0xf9e81e,
}); });
} }