Skip to content

Commit

Permalink
fixed scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarmazina committed Nov 16, 2023
1 parent 471f48e commit aec6909
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 11 additions & 4 deletions frontend/src/app/stories-bar/stories-bar.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ mat-tab-group{
height: calc(100% - 65px);
}

.itemListDiv {
.itemListDiv{
height: calc(100% - 125px);
}

.itemListDivNotCustom{
.storyListDivNotCustom{
height: calc(100% - 110px);
}

.itemListDiv>ul{
.storyListDivWithFilter{
height: calc(100% - 235px);
}

.itemListDiv>ul, .storyListDivNotCustom>ul, .storyListDivWithFilter>ul{
height: 100%;
overflow: scroll;
}
Expand Down Expand Up @@ -335,7 +339,6 @@ a.storyListLink:hover{
"storyList";
}
}

.darkTheme .uk-accordion-title::before {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMThweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMThweCIgZmlsbD0iI0ZGRkZGRiI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDEzaC02djZoLTJ2LTZINXYtMmg2VjVoMnY2aDZ2MnoiLz48L3N2Zz4=);
width: 19px;
Expand All @@ -351,6 +354,10 @@ a.storyListLink:hover{
.darkTheme ::-webkit-scrollbar-corner{
background: none !important;
}
::-webkit-scrollbar{
width: 10px; /* Adjust the width as needed */
}

.tab-icon{
color: var(--brown-grey);
margin-bottom: 12px;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/stories-bar/stories-bar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</mat-form-field>
</div>
<hr>
<div [class.itemListDiv]="this.stories?.length !== 0 && isCustomStory" [class.itemListDivNotCustom]="this.stories?.length !== 0 && !isCustomStory">
<div [class.itemListDiv]="this.stories?.length !== 0 && isCustomStory" [class.storyListDivNotCustom]="this.stories?.length !== 0 && !isCustomStory" [class.storyListDivWithFilter]="showFilter">
<ul uk-accordion (cdkDropListDropped)="dropStory($event)" cdkDropList cdkDropListLockAxis="y">
<li *ngFor="let s of getSortedStories(); let i = index" cdkDrag >
<div id="storyList" (click)="selectStoryScenario(s)" class="Mediumaccordeon2 uk-accordion-title" >
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,10 @@ a:hover {
background: map-get($mat-brown-palette, 200);
}

.mdc-menu-surface::-webkit-scrollbar-thumb {
background: none !important;
}

.darkTheme ::-webkit-scrollbar-thumb,
.darkTheme::-webkit-scrollbar-thumb {
background: map-get($mat-blue-gray-palette, 200) !important;
Expand Down

0 comments on commit aec6909

Please sign in to comment.