Skip to content

Commit

Permalink
fix scss
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Sep 17, 2020
1 parent fed77da commit fdc9d2b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
21 changes: 0 additions & 21 deletions x-pack/plugins/lens/public/indexpattern_datasource/datapanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,6 @@
margin-bottom: $euiSizeS;
}

/**
* 1. Don't cut off the shadow of the field items
*/

.lnsInnerIndexPatternDataPanel__listWrapper {
@include euiOverflowShadow;
@include euiScrollBar;
margin-left: -$euiSize; /* 1 */
position: relative;
flex-grow: 1;
overflow: auto;
}

.lnsInnerIndexPatternDataPanel__list {
padding-top: $euiSizeS;
position: absolute;
top: 0;
left: $euiSize; /* 1 */
right: $euiSizeXS; /* 1 */
}

.lnsInnerIndexPatternDataPanel__fieldItems {
// Quick fix for making sure the shadow and focus rings are visible outside the accordion bounds
padding: $euiSizeXS $euiSizeXS 0;
Expand Down
20 changes: 20 additions & 0 deletions x-pack/plugins/lens/public/indexpattern_datasource/field_list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* 1. Don't cut off the shadow of the field items
*/

.lnsIndexPatternFieldList {
@include euiOverflowShadow;
@include euiScrollBar;
margin-left: -$euiSize; /* 1 */
position: relative;
flex-grow: 1;
overflow: auto;
}

.lnsIndexPatternFieldList__accordionContainer {
padding-top: $euiSizeS;
position: absolute;
top: 0;
left: $euiSize; /* 1 */
right: $euiSizeXS; /* 1 */
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import './datapanel.scss';
import './field_list.scss';
import { throttle } from 'lodash';
import React, { useState, Fragment, useCallback, useMemo, useEffect } from 'react';
import { EuiSpacer } from '@elastic/eui';
Expand Down Expand Up @@ -128,7 +128,7 @@ export function FieldList({

return (
<div
className="lnsInnerIndexPatternDataPanel__listWrapper"
className="lnsIndexPatternFieldList"
ref={(el) => {
if (el && !el.dataset.dynamicScroll) {
el.dataset.dynamicScroll = 'true';
Expand All @@ -137,7 +137,7 @@ export function FieldList({
}}
onScroll={throttle(lazyScroll, 100)}
>
<div className="lnsInnerIndexPatternDataPanel__list">
<div className="lnsIndexPatternFieldList__accordionContainer">
{Object.entries(fieldGroups)
.filter(([, { showInAccordion }]) => !showInAccordion)
.flatMap(([, { fields }]) =>
Expand Down

0 comments on commit fdc9d2b

Please sign in to comment.