Skip to content

Commit

Permalink
fix: make scroll buttons consistent in tabstrip, spreadsheet and and …
Browse files Browse the repository at this point in the history
…chat
  • Loading branch information
joneff committed Jan 17, 2022
1 parent e7bb71f commit 72ad38d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/default/scss/chat/_layout.scss
Expand Up @@ -444,12 +444,13 @@


.k-scroll-button {
// IMPORTANT: if we don't set padding, the browser will set for us
padding: 0 map-get( $spacing, 1 );
height: 100%;
aspect-ratio: auto;
position: absolute;
z-index: 2;
top: 50%;
transform: translateY(-50%);
top: 0;

.k-button-icon {
min-width: auto;
Expand Down
14 changes: 11 additions & 3 deletions packages/default/scss/tabstrip/_layout.scss
Expand Up @@ -134,19 +134,27 @@
}

> .k-button {
flex-shrink: 0;
width: auto;
height: auto;
flex: none;
align-self: stretch;
aspect-ratio: auto;

.k-button-icon {
min-width: auto;
min-height: auto;
}
}

&.k-hstack {
> .k-button {
height: auto;
padding: 0 map-get( $spacing, 1 );
}
}

&.k-vstack {
> .k-button {
width: auto;
padding: map-get( $spacing, 1 ) 0;
}
}
}
Expand Down

0 comments on commit 72ad38d

Please sign in to comment.