mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing video thumb position intialization
This commit is contained in:
parent
bda3eb609a
commit
226b95ddb4
@ -49,15 +49,15 @@ export function useAddTopic() {
|
||||
const actions = {
|
||||
addImage: (image) => {
|
||||
let url = URL.createObjectURL(image);
|
||||
addAsset({ image, url, position: 0 })
|
||||
addAsset({ image, url })
|
||||
},
|
||||
addVideo: (video) => {
|
||||
let url = URL.createObjectURL(video);
|
||||
addAsset({ video, url, label: '' })
|
||||
addAsset({ video, url, position: 0 })
|
||||
},
|
||||
addAudio: (audio) => {
|
||||
let url = URL.createObjectURL(audio);
|
||||
addAsset({ audio, url })
|
||||
addAsset({ audio, url, label: '' })
|
||||
},
|
||||
setLabel: (index, label) => {
|
||||
updateAsset(index, { label });
|
||||
|
@ -8,5 +8,6 @@ export const ChannelsWrapper = styled.div`
|
||||
overflow: auto;
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
padding-top: 16px;
|
||||
`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user