Skip to content

Commit

Permalink
use interpolation in calc methods that use vars and namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 12, 2024
1 parent d324db4 commit 1b3b1a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
mat-dialog-content {
//scrollbar-gutter: stable both-edges;
$dialog-header-height: 48px;
// Intellij shows error here but it isn't an error
$full-dialog-content-height: calc(
100vh - variables.$top-bar-height - $dialog-header-height - variables.$dialog-content-padding-y -
variables.$dialog-action-buttons-div-height
100vh - #{variables.$top-bar-height} - $dialog-header-height - #{variables.$dialog-content-padding-y} -
#{variables.$dialog-action-buttons-div-height}
);
@extend .d-flex;
@extend .flex-column;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ table.okr-table {

.okr-dialog-panel {
margin-top: variables.$top-bar-height;
max-height: calc(100vh - variables.$top-bar-height); //Intellij shows an error here, but it is correct
max-height: calc(100vh - #{variables.$top-bar-height});
@extend .col-12;
}

Expand Down

0 comments on commit 1b3b1a6

Please sign in to comment.