+
+
- This site uses
digital rights management solutions that prevent this
- extension from automatically detecting aspect ratio. You will have to adjust aspect ratio manually.
+ This site is blocking automatic aspect ratio detection. You will have to adjust aspect ratio manually.
+
Learn more ...
-
+
this.uwWindowVisible = false, 1100);
this.uwWindowFadeOut = true;
},
@@ -371,6 +388,12 @@ export default {
// height: 100%;
// }
+.tab-main {
+ flex-grow: 1;
+ flex-shrink: 1;
+ overflow: hidden;
+}
+
.site-support-info {
display: flex;
flex-direction: row;
@@ -451,6 +474,45 @@ export default {
}
}
+.content {
+ flex-grow: 1;
+
+ .warning-area {
+ flex-grow: 0;
+ flex-shrink: 0;
+ }
+
+ .panel-content {
+ flex-grow: 1;
+ flex-shrink: 1;
+
+ overflow-y: auto;
+ padding: 1rem;
+ }
+}
+
+.warning-box {
+ background: rgb(255, 174, 107);
+ color: #000;
+ margin: 1rem;
+ padding: 1rem;
+
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+
+ .icon-container {
+ margin-right: 1rem;
+ flex-shrink: 0;
+ flex-grow: 0;
+ }
+
+ a {
+ color: rgba(0,0,0,0.7);
+ cursor: pointer;
+ }
+}
+
.uw-hover {
position: absolute;
diff --git a/src/csui/src/PlayerUiPanels/PlayerDetectionPanel.vue b/src/csui/src/PlayerUiPanels/PlayerDetectionPanel.vue
index dbd15de..ea1f18b 100644
--- a/src/csui/src/PlayerUiPanels/PlayerDetectionPanel.vue
+++ b/src/csui/src/PlayerUiPanels/PlayerDetectionPanel.vue
@@ -1,5 +1,5 @@
-
+
Quick fixes:
-
Width: 100%
-
Height: 100%
+
+ Width: 100%
+
+
+ Height: 100%
+
+
+ Display: flex
+
+
+ Flex direction:
+
+ row
+ |
+
+ column
+
+
+
+ Justify content:
+
+ start
+ |
+
+ center
+ |
+
+ end
+
+
+
+ Align items:
+
+ start
+ |
+
+ center
+ |
+
+ end
+
+
+
+
+ Justify self:
+
+ start
+ |
+
+ center
+ |
+
+ end
+
+
+
+ Align self:
+
+ start
+ |
+
+ center
+ |
+
+ end
+
+
+
+ Text-align:
+
+ left
+ |
+
+ center
+ |
+
+ right
+
+
+
+ Position:
+
+ relative
+ |
+
+ absolute
+
+
@@ -111,7 +286,8 @@ export default({
},
data() {
return {
- elementStack: []
+ elementStack: [],
+ cssStack: [],
};
},
mixins: [],
@@ -153,6 +329,43 @@ export default({
await this.settings.save();
this.eventBus.sendToTunnel('get-player-tree');
}
+ },
+ /**
+ * Toggles active CSS for element of certain parent index.
+ * cssValue is optional and can be included in cssRule argument
+ */
+ toggleCssForElement(index, cssRule, cssValue) {
+ if (cssValue) {
+ // this is "toggle off" case for calls that put cssRule and cssValue as separate arguments
+ if (this.cssStack[index]?.includes(cssRule) && this.cssStack[index]?.includes(cssValue)) {
+ this.cssStack[index] = this.cssStack[index].filter(x => ! x.includes(cssRule));
+
+ //TODO: update settings!
+ return;
+ }
+ }
+
+ // this rule applies to current element — remove it!
+ if (this.cssStack[index]?.includes(cssRule)) {
+ this.cssStack[index] = this.cssStack[index].filter(x => ! x.includes(cssRule));
+
+ // exception: if cssValue is given separately, we aren't removing it
+ // in that case, we're overwriting it
+ if (cssValue) {
+ this.cssStack[index].push(`${cssRule}: ${cssValue};`);
+ }
+ } else {
+ if (!this.cssStack[index]) {
+ this.cssStack[index] = [];
+ }
+ if (cssValue) {
+ this.cssStack[index].push(`${cssRule}: ${cssValue};`);
+ } else {
+ this.cssStack[index].push(cssRule)
+ }
+ }
+
+ //TODO: update settings!
}
}
})
@@ -220,4 +433,8 @@ export default({
}
}
}
+
+.tab-root {
+ width: 100%;
+}