Fix allImage vertical scrolling getting clipped

This commit is contained in:
Timothy Farrell 2018-01-10 21:47:47 -06:00
parent 1f6f9b0bb7
commit 3fd5743abd

View File

@ -18,7 +18,7 @@ import { Icon } from './components/icon.js';
import { AppBar } from './components/appbar.js'; import { AppBar } from './components/appbar.js';
import { Overlay } from './components/overlay.js'; import { Overlay } from './components/overlay.js';
import { injectStyle, styled } from '../services/style.js'; import { injectStyle, styled } from '../services/style.js';
import { CLICKABLE, FILL_STYLE } from './styles.js'; import { CLICKABLE } from './styles.js';
export function uploadImages(evt, files) { export function uploadImages(evt, files) {
Array.from(files || evt.currentTarget.files).forEach(ImageType.upload); Array.from(files || evt.currentTarget.files).forEach(ImageType.upload);
@ -256,10 +256,12 @@ const uploadButton = styled(
CLICKABLE CLICKABLE
); );
const allImagesContainer = styled(FILL_STYLE); const allImagesContainer = styled({
const allImagesContent = styled( display: 'flex',
{ flexDirection: 'column',
overflow: 'scroll' flex: 1
}, });
FILL_STYLE const allImagesContent = styled({
); overflowY: 'scroll',
flex: 1
});