From f390b432d585357a8adc0efb6ecc4a199b69b8d0 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Wed, 28 Feb 2024 20:58:41 +0100 Subject: [PATCH] Fix ydotnet sync. --- backend/src/Squidex/Config/Web/WebServices.cs | 1 + backend/src/Squidex/Squidex.csproj | 12 ++++++------ .../Contents/GraphQL/TestAsset.cs | 10 +++++----- .../editor/content-editor.component.html | 6 +++--- .../editor/content-editor.component.scss | 1 + .../framework/angular/list-view.component.html | 2 +- .../framework/angular/list-view.component.ts | 3 +++ .../shared/components/cursors.component.html | 17 ++++++++--------- .../shared/components/cursors.component.scss | 6 ++---- 9 files changed, 30 insertions(+), 28 deletions(-) diff --git a/backend/src/Squidex/Config/Web/WebServices.cs b/backend/src/Squidex/Config/Web/WebServices.cs index 36987d0f1..529683a0b 100644 --- a/backend/src/Squidex/Config/Web/WebServices.cs +++ b/backend/src/Squidex/Config/Web/WebServices.cs @@ -76,6 +76,7 @@ public static class WebServices services.AddLocalization(); services.AddYDotNet() + .AutoCleanup() .AddWebSockets(); services.AddMvc(options => diff --git a/backend/src/Squidex/Squidex.csproj b/backend/src/Squidex/Squidex.csproj index d1e17a3fe..0794d4439 100644 --- a/backend/src/Squidex/Squidex.csproj +++ b/backend/src/Squidex/Squidex.csproj @@ -76,13 +76,13 @@ - - - - - - + + + + + + diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestAsset.cs b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestAsset.cs index de9fd1414..79c1b6cca 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestAsset.cs +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestAsset.cs @@ -76,16 +76,16 @@ public static class TestAsset MimeType = "image/png", Type = AssetType.Image, MetadataText = "metadata-text", - Metadata =new AssetMetadata + Metadata = new AssetMetadata { [KnownMetadataKeys.PixelWidth] = 800, [KnownMetadataKeys.PixelHeight] = 600, }, - TagNames = new[] - { + TagNames = + [ "tag1", - "tag2" - }.ToHashSet() + "tag2", + ] }; return asset; diff --git a/frontend/src/app/features/content/pages/content/editor/content-editor.component.html b/frontend/src/app/features/content/pages/content/editor/content-editor.component.html index 683820fac..e96238501 100644 --- a/frontend/src/app/features/content/pages/content/editor/content-editor.component.html +++ b/frontend/src/app/features/content/pages/content/editor/content-editor.component.html @@ -1,6 +1,6 @@ - +
{{ 'contents.deleted' | sqxTranslate }} @@ -29,6 +29,8 @@
+ + - -
\ No newline at end of file diff --git a/frontend/src/app/features/content/pages/content/editor/content-editor.component.scss b/frontend/src/app/features/content/pages/content/editor/content-editor.component.scss index ebbf7ffc0..3625928d3 100644 --- a/frontend/src/app/features/content/pages/content/editor/content-editor.component.scss +++ b/frontend/src/app/features/content/pages/content/editor/content-editor.component.scss @@ -39,4 +39,5 @@ .cursors { position: relative; + padding: 1.5rem; } \ No newline at end of file diff --git a/frontend/src/app/framework/angular/list-view.component.html b/frontend/src/app/framework/angular/list-view.component.html index 2f29f4efa..b2f6f668b 100644 --- a/frontend/src/app/framework/angular/list-view.component.html +++ b/frontend/src/app/framework/angular/list-view.component.html @@ -10,7 +10,7 @@
-
+
diff --git a/frontend/src/app/framework/angular/list-view.component.ts b/frontend/src/app/framework/angular/list-view.component.ts index 172b5c593..d08bac8fb 100644 --- a/frontend/src/app/framework/angular/list-view.component.ts +++ b/frontend/src/app/framework/angular/list-view.component.ts @@ -58,6 +58,9 @@ export class ListViewComponent extends StatefulComponent implements After @Input({ transform: booleanAttribute }) public tableNoPadding?: boolean | null; + @Input({ transform: booleanAttribute }) + public noPadding?: boolean | null; + @Input({ transform: booleanAttribute }) public isLoaded: boolean | undefined | null = true; diff --git a/frontend/src/app/shared/components/cursors.component.html b/frontend/src/app/shared/components/cursors.component.html index b13c309cc..1ab93c01e 100644 --- a/frontend/src/app/shared/components/cursors.component.html +++ b/frontend/src/app/shared/components/cursors.component.html @@ -1,11 +1,10 @@ -
-
-
- {{cursor.user.displayName}} -
- - +
+
+ {{cursor.user.displayName}}
+ +
\ No newline at end of file diff --git a/frontend/src/app/shared/components/cursors.component.scss b/frontend/src/app/shared/components/cursors.component.scss index 5985bc6b1..01223c36a 100644 --- a/frontend/src/app/shared/components/cursors.component.scss +++ b/frontend/src/app/shared/components/cursors.component.scss @@ -1,12 +1,10 @@ @import 'mixins'; @import 'vars'; -.root { - position: relative; -} - .cursor { position: absolute; + pointer-events: none; + z-index: 100; } .user {