Fix layout shift in explorer

pull/3671/head
Himanshu Pal 2 years ago committed by bunsenstraat
parent 646438e9dd
commit 08e4de27f9
  1. 3
      apps/remix-ide/src/assets/css/themes/bootstrap-cerulean.min.css
  2. 3
      apps/remix-ide/src/assets/css/themes/bootstrap-cyborg.min.css
  3. 3
      apps/remix-ide/src/assets/css/themes/bootstrap-flatly.min.css
  4. 3
      apps/remix-ide/src/assets/css/themes/bootstrap-spacelab.min.css
  5. 3
      apps/remix-ide/src/assets/css/themes/remix-black_undtds.css
  6. 4
      apps/remix-ide/src/assets/css/themes/remix-candy_ikhg4m.css
  7. 3
      apps/remix-ide/src/assets/css/themes/remix-dark_tvx1s2.css
  8. 3
      apps/remix-ide/src/assets/css/themes/remix-hacker_owl.css
  9. 4
      apps/remix-ide/src/assets/css/themes/remix-light_powaqg.css
  10. 4
      apps/remix-ide/src/assets/css/themes/remix-midcentury_hrzph3.css
  11. 4
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -5640,6 +5640,9 @@ a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color:transparent!important background-color:transparent!important
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #dee2e6;
}
.border { .border {
border:1px solid #dee2e6!important border:1px solid #dee2e6!important
} }

@ -5642,6 +5642,9 @@ a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color:transparent!important background-color:transparent!important
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #dee2e6;
}
.border { .border {
border:1px solid #dee2e6!important border:1px solid #dee2e6!important
} }

@ -4512,6 +4512,9 @@ a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color:transparent!important background-color:transparent!important
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #dee2e6;
}
.border { .border {
border:1px solid #dee2e6!important border:1px solid #dee2e6!important
} }

@ -5642,6 +5642,9 @@ a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color:transparent!important background-color:transparent!important
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #dee2e6;
}
.border { .border {
border:1px solid #dee2e6!important border:1px solid #dee2e6!important
} }

@ -5707,6 +5707,9 @@ button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #3c3a3a;
}
.border { .border {
border: 1px solid #3c3a3a !important; border: 1px solid #3c3a3a !important;
} }

@ -6223,6 +6223,10 @@ button.bg-dark:focus {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #d6d8e3;
}
.border { .border {
border: 1px solid #d6d8e3 !important; border: 1px solid #d6d8e3 !important;
} }

@ -5709,6 +5709,9 @@ button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #3f4455;
}
.border { .border {
border: 1px solid #3f4455 !important; border: 1px solid #3f4455 !important;
} }

@ -5720,6 +5720,9 @@ button.bg-dark:hover {
.bg-transparent { .bg-transparent {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px var(--theme-divider-color);
}
.border { .border {
border: 1px solid var(--theme-divider-color) !important; border: 1px solid var(--theme-divider-color) !important;
} }

@ -6219,6 +6219,10 @@ button.bg-dark:focus {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #d6d8e3;
}
.border { .border {
border: 1px solid #d6d8e3 !important; border: 1px solid #d6d8e3 !important;
} }

@ -6225,6 +6225,10 @@ button.bg-dark:focus {
background-color: transparent !important; background-color: transparent !important;
} }
.border-no-shift {
box-shadow: inset 0 0 0 1px #9b8a85;
}
.border { .border {
border: 1px solid #9b8a85 !important; border: 1px solid #9b8a85 !important;
} }

@ -41,8 +41,8 @@ export const FileRender = (props: RenderFileProps) => {
const labelClass = props.focusEdit.element === file.path const labelClass = props.focusEdit.element === file.path
? 'bg-light' : props.focusElement.findIndex(item => item.key === file.path) !== -1 ? 'bg-light' : props.focusElement.findIndex(item => item.key === file.path) !== -1
? 'bg-secondary' : hover ? 'bg-secondary' : hover
? 'bg-light border' : (props.focusContext.element === file.path) && (props.focusEdit.element !== file.path) ? 'bg-light border-no-shift' : (props.focusContext.element === file.path) && (props.focusEdit.element !== file.path)
? 'bg-light border' : '' ? 'bg-light border-no-shift' : ''
const spreadProps = { const spreadProps = {
onClick: (e) => e.stopPropagation() onClick: (e) => e.stopPropagation()

Loading…
Cancel
Save