Skip to content

Commit

Permalink
#1292 Incorrect horizontal scrollbars in save structure modal window (#…
Browse files Browse the repository at this point in the history
…1296)

* fix styles

* apply formatting

* add fallback font for mac os, add height for thin scrollbar

* remove font settings for textarea

Co-authored-by: Anastasiia Moskvina <anastasiia_moskvina@epam.com>
  • Loading branch information
AnaMoskvina and Anastasiia Moskvina authored Mar 3, 2022
1 parent 61dcc5b commit 4255ecd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@import '../../../../../../../style/variables.less';
@import '../../../../../../../style/mixins.less';

@save-container-width-large: 485px;
@save-container-width-large: 482px;
@save-container-height-large: 315px;
@save-container-width-small: 380px;
@save-container-height-small: 325px;
Expand All @@ -40,18 +40,18 @@

.warnings {
max-height: 50px;
height: fit-content;
flex-shrink: 0;
border: none;
border-radius: 4px;
margin: 2px;
margin: 2px 0;
padding: 2px 5px;
overflow: auto;

.scrollbar_thin();

.warningsContainer {
display: flex;

.warningsArr {
color: @error-color;
margin: 2px;
Expand Down Expand Up @@ -81,7 +81,6 @@

input {
height: 25px !important;
width: 190px;
}

> span {
Expand Down
3 changes: 3 additions & 0 deletions packages/ketcher-react/src/style/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@
.scrollbar_thin {
&::-webkit-scrollbar {
width: 4px;
height: 4px;
background-color: @color-scroll-inactive;
border-radius: 2px;
-webkit-border-radius: 2px;
Expand All @@ -457,4 +458,6 @@
&::-webkit-scrollbar-thumb:active {
background-color: @color-scroll;
}

scrollbar-width: thin; // mozilla
}

0 comments on commit 4255ecd

Please sign in to comment.