Skip to content

Commit

Permalink
Feat #690 Model Tabs Fixed Position When Scrolling (#710)
Browse files Browse the repository at this point in the history
* tabs row is now fixed on top of each view
* improved tabs row behavior when many tabs are open
  • Loading branch information
joao4all authored Jul 25, 2024
1 parent 85cb19e commit 2da90f6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion COMETwebapp/Components/Tabs/TabComponent.razor.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.tab-component {
max-width: fit-content;
border-radius: 7.5px;
padding: 2px 10px 2px 10px;
display: flex;
Expand All @@ -8,6 +7,7 @@
background-color: var(--colors-white);
color: var(--colors-primary-800);
font-weight: 500;
width: max-content;
}

.current-tab {
Expand Down
2 changes: 1 addition & 1 deletion COMETwebapp/Components/Tabs/TabsPanelComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="panel-view @(this.CssClass)">
@if (this.Panel.CurrentTab is not null)
{
<div class="d-flex tabs-row justify-content-between user-select-none">
<div class="tabs-row">
<div class="d-flex gap-2">
<SortableList Group="tabs-panel"
Items="@(this.Panel.OpenTabs.Items.ToList())"
Expand Down
9 changes: 9 additions & 0 deletions COMETwebapp/Components/Tabs/TabsPanelComponent.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
padding: 16px;
border-radius: 24px 0px 0px 0px;
overflow: auto;
user-select: none;
justify-content: space-between;
display: flex;
max-height: 10vh;
}

#tabs-page-content{
max-height: 90vh;
overflow: auto;
}

.panel-view {
Expand Down
4 changes: 2 additions & 2 deletions COMETwebapp/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ sub {
}

.data-items-panel-container {
max-height: 90vh;
max-height: 88vh;
position: sticky;
top: 10px;
top: 0;
flex: 1 1 35%;
min-width: 350px;
}
Expand Down

0 comments on commit 2da90f6

Please sign in to comment.