Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add space between buttons in DeviceDetailPage and DeviceModelDetailPage #119

Merged
merged 2 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@
</MudGrid>
}
</MudCardContent>
<MudCardActions>
<MudFab ButtonType="ButtonType.Submit" Color="Color.Secondary" Icon="@Icons.Material.Filled.Save" Label="Save" Class="ml-auto" />
<MudFab Color="Color.Dark" Icon="@Icons.Material.Filled.Delete" Label="Delete" OnClick="DeleteDeviceModel" />
</MudCardActions>
</MudCard>
<MudCardActions>
<MudFab ButtonType="ButtonType.Submit" Color="Color.Secondary" Icon="@Icons.Material.Filled.Save" Label="Save" Class="btn-aln-right" />
<MudFab Color="Color.Dark" Icon="@Icons.Material.Filled.Delete" Label="Delete" OnClick="DeleteDeviceModel" />
</MudCardActions>

</EditForm>

</MudContainer>
Expand Down Expand Up @@ -199,7 +200,7 @@

// Add the last command entered, in case it wasn't already in the list
this.AddCommand();

// Unnecessary to send the list of commands to the controller
// TODO : Do this more effectively
DeviceModel.Commands.Clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
</MudCardContent>
</MudCard>
<MudCardActions>
<MudFab ButtonType="ButtonType.Submit" Color="Color.Secondary" Icon="@Icons.Material.Filled.Save" Label="Save" Disabled="@(!success)" Class="ml-auto" />
<MudFab ButtonType="ButtonType.Submit" Color="Color.Secondary" Icon="@Icons.Material.Filled.Save" Label="Save" Disabled="@(!success)" Class="btn-aln-right" />
<MudFab Color="Color.Dark" Icon="@Icons.Material.Filled.Delete" Label="Delete" OnClick="DeleteDevice" />
</MudCardActions>
</EditForm>
Expand Down
5 changes: 5 additions & 0 deletions src/AzureIoTHub.Portal/Client/wwwroot/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
margin-top: 1em;
}

.btn-aln-right {
margin-left: auto;
margin-right : 10px;
}

/*//////////////////// Search Panel ////////////////*/
.search-panel {

Expand Down