mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 23:00:21 +00:00 
			
		
		
		
	Stop cascading the main layout
This commit is contained in:
		
							parent
							
								
									6e3d80abac
								
							
						
					
					
						commit
						03c6e69f41
					
				| @ -1,5 +1,3 @@ | |||||||
| using AIStudio.Layout; |  | ||||||
| 
 |  | ||||||
| using Microsoft.AspNetCore.Components; | using Microsoft.AspNetCore.Components; | ||||||
| 
 | 
 | ||||||
| namespace AIStudio.Components; | namespace AIStudio.Components; | ||||||
| @ -30,9 +28,6 @@ public partial class InnerScrolling : MSGComponentBase | |||||||
|     [Parameter] |     [Parameter] | ||||||
|     public string Style { get; set; } = string.Empty; |     public string Style { get; set; } = string.Empty; | ||||||
|      |      | ||||||
|     [CascadingParameter] |  | ||||||
|     private MainLayout MainLayout { get; set; } = null!; |  | ||||||
|      |  | ||||||
|     [Inject] |     [Inject] | ||||||
|     private IJSRuntime JsRuntime { get; init; } = null!; |     private IJSRuntime JsRuntime { get; init; } = null!; | ||||||
|      |      | ||||||
|  | |||||||
| @ -60,11 +60,9 @@ | |||||||
| 
 | 
 | ||||||
|                 @if (!this.performingUpdate) |                 @if (!this.performingUpdate) | ||||||
|                 { |                 { | ||||||
|                     <CascadingValue Value="@this" IsFixed="true"> |                     @this.Body | ||||||
|                         @this.Body |  | ||||||
|                     </CascadingValue> |  | ||||||
|                 } |                 } | ||||||
| 
 |                  | ||||||
|                 <MudOverlay Visible="@this.performingUpdate" DarkBackground="@true" LockScroll="@true"> |                 <MudOverlay Visible="@this.performingUpdate" DarkBackground="@true" LockScroll="@true"> | ||||||
|                     <MudText Typo="Typo.h3">Please wait for the update to complete...</MudText> |                     <MudText Typo="Typo.h3">Please wait for the update to complete...</MudText> | ||||||
|                     <MudProgressLinear Color="Color.Primary" Indeterminate="@true" Size="Size.Large" Rounded="@true"/> |                     <MudProgressLinear Color="Color.Primary" Indeterminate="@true" Size="Size.Large" Rounded="@true"/> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user