merge develop
This commit is contained in:
commit
df29fa4d96
13
front/dist/resources/style/cowebsite.scss
vendored
13
front/dist/resources/style/cowebsite.scss
vendored
@ -89,20 +89,25 @@
|
|||||||
}
|
}
|
||||||
@media (max-aspect-ratio: 1/1) {
|
@media (max-aspect-ratio: 1/1) {
|
||||||
|
|
||||||
|
#main-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#cowebsite {
|
#cowebsite {
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50%;
|
height: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column-reverse;
|
||||||
|
|
||||||
&.loading {
|
&.loading {
|
||||||
transform: translateY(90%);
|
transform: translateY(-90%);
|
||||||
}
|
}
|
||||||
&.hidden {
|
&.hidden {
|
||||||
transform: translateY(100%);
|
transform: translateY(-100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
@ -14,7 +14,7 @@ export function isUserNameValid(value: string): boolean {
|
|||||||
return regexp.test(value);
|
return regexp.test(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function areCharacterLayersValid(value: string[]): boolean {
|
export function areCharacterLayersValid(value: string[] | null): boolean {
|
||||||
if (!value || !value.length) return false;
|
if (!value || !value.length) return false;
|
||||||
for (let i = 0; i < value.length; i++) {
|
for (let i = 0; i < value.length; i++) {
|
||||||
if (/^\w+$/.exec(value[i]) === null) {
|
if (/^\w+$/.exec(value[i]) === null) {
|
||||||
|
@ -74,7 +74,7 @@ class CoWebsiteManager {
|
|||||||
|
|
||||||
private initResizeListeners() {
|
private initResizeListeners() {
|
||||||
const movecallback = (event:MouseEvent) => {
|
const movecallback = (event:MouseEvent) => {
|
||||||
this.verticalMode ? this.height -= event.movementY / this.getDevicePixelRatio() : this.width -= event.movementX / this.getDevicePixelRatio();
|
this.verticalMode ? this.height += event.movementY / this.getDevicePixelRatio() : this.width -= event.movementX / this.getDevicePixelRatio();
|
||||||
this.fire();
|
this.fire();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user