Skip to content

Commit

Permalink
Fixed css for ContentDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 24, 2024
1 parent 833fd3c commit a869875
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/Inc.TeamAssistant.WebUI/Extensions/IJsFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public interface IJsFunction<TResult>

object?[]? Args { get; }

Action? PostAction { get; }
Action? OnExecuted { get; }
}
4 changes: 2 additions & 2 deletions src/Inc.TeamAssistant.WebUI/Extensions/JsFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public static IJsFunction<dynamic> ChangeUrl(NavRoute route, Action<NavRoute> on
private sealed record JsFunction<TResult> : IJsFunction<TResult>
{
public string Identifier { get; }
public Action? PostAction { get; }
public Action? OnExecuted { get; }
public object?[]? Args { get; }

internal JsFunction(string identifier, Action? postAction, params object?[]? args)
{
ArgumentException.ThrowIfNullOrWhiteSpace(identifier);

Identifier = identifier;
PostAction = postAction;
OnExecuted = postAction;
Args = args;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Inc.TeamAssistant.WebUI/Extensions/JsRuntimeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static async ValueTask<TValue> Execute<TValue>(this IJSRuntime jsRuntime,

var result = await jsRuntime.InvokeAsync<TValue>(jsFunction.Identifier, jsFunction.Args);

jsFunction.PostAction?.Invoke();
jsFunction.OnExecuted?.Invoke();

return result;
}
Expand All @@ -23,6 +23,6 @@ public static async ValueTask Execute(this IJSRuntime jsRuntime, IJsFunction<dyn

await jsRuntime.InvokeVoidAsync(jsFunction.Identifier, jsFunction.Args);

jsFunction.PostAction?.Invoke();
jsFunction.OnExecuted?.Invoke();
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
.component-container {
height: calc(100% - 136px);
}
.component-actions {
display: flex;
justify-content: right;
margin-top: 20px;
padding: 0 10px;
margin: 10px;
}
::deep .no-data {
height: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
.component-container {
position: relative;
height: calc(100% - 30px);
}
.appraiser-integration__body {
padding: 0 10px;
height: calc(100% - 70px);
}
.component-actions {
display: flex;
justify-content: right;
margin-top: 20px;
padding: 0 10px;
margin: 10px;
}
.appraiser-integration__button {
margin-left: 10px;
Expand All @@ -34,7 +31,4 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
::deep form {
height: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
justify-content: right;
}
.widget-settings__body {
margin: 20px;
height: calc(100% - 90px);
margin: 10px;
}
.widget-settings__item {
background-color: #555;
Expand All @@ -24,20 +23,14 @@
.widget-settings__actions {
display: flex;
justify-content: right;
padding: 0 10px;
}
.widget-settings {
height: calc(100% - 20px);
margin: 0 10px 10px 10px;
}
.widget-settings__drag {
display: flex;
}
.widget-settings__button, .widget-settings__label, .widget-settings__drag, ::deep .widget-settings__checkbox {
margin-right: 10px;
}
::deep form {
height: 100%;
}
@media (max-width: 767.98px) {
.dashboard-settings {
display: none;
Expand Down

0 comments on commit a869875

Please sign in to comment.