Skip to content

Commit

Permalink
Merge pull request #1073 from ga-devfront/feat/virtual-scroll
Browse files Browse the repository at this point in the history
[NEW-UI] virtual scroll
  • Loading branch information
ga-devfront authored Dec 19, 2024
2 parents d2cead5 + 1f4465f commit a4d1511
Show file tree
Hide file tree
Showing 17 changed files with 393 additions and 246 deletions.
1 change: 0 additions & 1 deletion _dev/src/scss/components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@
@use "privacy";
@use "progress";
@use "radio-card";
@use "scrollbar";
@use "stepper";
41 changes: 8 additions & 33 deletions _dev/src/scss/components/_logs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,23 @@ $e-logs: ".logs";
flex-direction: column;
flex-grow: 1;
min-height: var(--#{$ua-prefix}logs-height);
overflow: hidden;
background-color: var(--#{$ua-prefix}logs-background-color);
border-radius: var(--#{$ua-prefix}border-radius);

#{$e-logs}__line {
padding-inline-start: 2.75rem;
background-position: 1rem 0.125rem;
background-size: 1.25rem 1.25rem;
font-size: 0.75rem;
line-height: 1.25rem;

&::before {
font-size: 1.2rem;
}
white-space: pre-line;
}
}

&__scroll-inner {
height: 100%;
overflow-y: auto;
overflow-y: scroll;
border-radius: var(--#{$ua-prefix}border-radius);
}

&__list {
Expand All @@ -63,7 +62,6 @@ $e-logs: ".logs";
}

&__line {
position: relative;
padding-block: 0.125rem;
padding-inline: 2.75rem 1rem;
background-repeat: no-repeat;
Expand All @@ -74,39 +72,16 @@ $e-logs: ".logs";
word-break: break-word;
transition: background-color 0.3s ease-in-out;

&::before {
content: "";
position: absolute;
top: 50%;
left: 1rem;
display: block;
width: 1.375rem;
height: 1.25rem;
font-family: var(--#{$ua-prefix}font-family-material-icons);
font-size: 1.25rem;
line-height: 1;
transform: translateY(-50%);
}

&--success {
&::before {
content: "check";
color: var(--#{$ua-prefix}green-500);
}
background-image: url("../../img/check.svg");
}

&--warning {
&::before {
content: "warning";
color: var(--#{$ua-prefix}yellow-500);
}
background-image: url("../../img/warning.svg");
}

&--error {
&::before {
content: "close";
color: var(--#{$ua-prefix}red-500);
}
background-image: url("../../img/close.svg");
}

&--pointed {
Expand Down
30 changes: 0 additions & 30 deletions _dev/src/scss/components/_scrollbar.scss

This file was deleted.

Loading

0 comments on commit a4d1511

Please sign in to comment.