Fix allImage vertical scrolling getting clipped

This commit is contained in:
Timothy Farrell 2018-01-10 21:47:47 -06:00
parent fd0bea1d84
commit f9cb05aba1

View File

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