Skip to content
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 @@ -115,9 +115,11 @@
<div class="mx-2 mt-2">
<TabSet WholeWidth="false" DarkMode="false" KeepPanelsAlive="false" @ref="appHandler!.Tabset">
<Tab Title="@(userConfig.GetText("connections"))" Position=0>
<button type="button" class="btn btn-sm btn-success" @onclick="appHandler!.AddConnection">
@(DisplayService.DisplayButton(userConfig, "add_connection", Icons.Add))
</button>
<div>
<button type="button" class="btn btn-sm btn-success" @onclick="appHandler!.AddConnection">
@(DisplayService.DisplayButton(userConfig, "add_connection", Icons.Add))
</button>
</div>
<ConnectionTable UseResponsiveTable="true" ShowPageSizeInput="true" Connections="@appHandler!.GetRegularConnections()" @bind-AppHandler="appHandler" AppActive="appActive" ShowModellingState="true" ShowProductionState="true" />
</Tab>
<Tab Title="@(userConfig.GetText("provided_interfaces"))" Position=1>
Expand Down
68 changes: 10 additions & 58 deletions roles/ui/files/FWO.UI/Shared/ConnectionTable.razor.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,16 @@
.connectiontable-responsive {
max-height: 40vh;
overflow: scroll;
height: calc(100vh - 430px);
overflow: auto;
display: flex;
flex-direction: column;
}

@media(height < 700px) {
.connectiontable-responsive {
max-height: 30vh;
}
.connectiontable-responsive .table-responsive {
flex: 1;
overflow: auto;
min-height: 0;
}

@media(height > 700px) and (height < 800px) and (width > 700px) {
.connectiontable-responsive {
max-height: 45vh;
}
}

@media(height > 800px) and (width > 700px) {
.connectiontable-responsive {
max-height: 45vh;
}
}

@media(height > 900px) and (width > 800px) {
.connectiontable-responsive {
max-height: 50vh;
}
}

@media(height > 1000px) and (width > 800px) {
.connectiontable-responsive {
max-height: 55vh;
}
}

@media(height > 1100px) and (width > 800px) {
.connectiontable-responsive {
max-height: 60vh;
}
}

@media(height > 900px) and (width > 1200px) {
.connectiontable-responsive {
max-height: 55vh;
}
}

@media(height > 1100px) and (width > 1200px) {
.connectiontable-responsive {
max-height: 60vh;
}
}

@media(height > 1200px) and (width > 1600px) {
.connectiontable-responsive {
max-height: 64vh;
}
}

@media(height > 1200px) and (width < 1100px) {
.connectiontable-responsive {
max-height: 72vh;
}
.connectiontable-responsive .table {
margin-bottom: 0;
}
26 changes: 26 additions & 0 deletions roles/ui/files/FWO.UI/Shared/TabSet.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,30 @@

.nav-link-rsb-hover:hover {
background-color: #054887 !important;
}

.nav-tabs-body {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}

.nav-tabs-body > * {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}

.nav {
flex-shrink: 0;
}

.nav-tabs-body .pt-3 {
padding-top: 1rem !important;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
Loading