non selectable text

tags side by side
load 16 videopreviews instead of 12 for huge monitor sizes
This commit is contained in:
2020-08-30 22:01:54 +00:00
parent f0902d29b7
commit e5ef1f94a4
6 changed files with 11 additions and 9 deletions

View File

@ -2,10 +2,8 @@
font-size: smaller;
font-weight: bold;
height: 20px;
height: 20px;
max-width: 266px;
text-align: center;
text-align: center;
}
.previewpic {

View File

@ -3,8 +3,8 @@
border: none;
border-radius: 10px;
color: white;
display: block;
margin: 10px;
margin-left: 10px;
margin-top: 15px;
/*font-weight: bold;*/
padding: 5px 15px 5px 15px;
}

View File

@ -24,7 +24,7 @@ class VideoContainer extends React.Component {
componentDidMount() {
document.addEventListener('scroll', this.trackScrolling);
this.loadPreviewBlock(12);
this.loadPreviewBlock(16);
}
render() {

View File

@ -8,11 +8,11 @@ describe('<VideoContainer/>', function () {
wrapper.unmount();
});
it('inserts tiles correctly', () => {
it('inserts tiles correctly if enough available', () => {
const wrapper = shallow(<VideoContainer data={[
{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}
{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}
]}/>);
expect(wrapper.find('Preview')).toHaveLength(12);
expect(wrapper.find('Preview')).toHaveLength(16);
});
it('inserts tiles correctly if not enough available', () => {