diff --git a/src/renderer/App.css b/src/renderer/App.css index e58e97e..c1d8a1f 100644 --- a/src/renderer/App.css +++ b/src/renderer/App.css @@ -145,7 +145,7 @@ button.selected { } .subtitle-list { - max-height: 200px; + height: 200px; overflow-y: scroll; } @@ -200,6 +200,14 @@ button.selected { } } +.subtitle-window table td:nth-child(2) { + width: 250px; +} + +.subtitle-window input { + width: 100%; +} + .video-list-element { border: 1px solid transparent; border-radius: 10px; diff --git a/src/renderer/App.jsx b/src/renderer/App.jsx index 85ab80e..2fd4a4f 100644 --- a/src/renderer/App.jsx +++ b/src/renderer/App.jsx @@ -85,7 +85,8 @@ let App = (props) => { {interstitialState.message} {!location.pathname.includes(`/create`) && - !location.pathname.includes(`/batch`) ? ( + !location.pathname.includes(`/batch`) && + !location.pathname.includes(`edit`) ? (
-
+
{videos.map((video, index) => { let opClass; - let opFn; switch (op) { case 'remove': opClass = 'removeable'; @@ -97,7 +103,7 @@ export default ({
{ - opFn(collectionId, videoId); + opFn(collectionId, video._id); }} >
diff --git a/src/renderer/components/SubtitleList.jsx b/src/renderer/components/SubtitleList.jsx index 0ad1750..834c2b0 100644 --- a/src/renderer/components/SubtitleList.jsx +++ b/src/renderer/components/SubtitleList.jsx @@ -18,6 +18,7 @@ let convertMillisecondsToTimestamp = (milliseconds) => { export default ({ subs, + videoId, clipNumberOverride, titleOverride, currentSub, @@ -42,6 +43,18 @@ export default ({ getCollections(); }, []); + useEffect(() => { + if (titleOverride && clipNumberOverride) { + let found = Object.keys(collections).find((collectionId) => { + return collections[collectionId].includes(videoId); + }); + + if (found) { + setSelectedCollection(found); + } + } + }, [collections]); + const getCollections = async () => { let collections = await CollectionAPI.getCollections(game); setCollections(collections); @@ -117,6 +130,7 @@ export default ({ Index In Out + Type @@ -145,6 +159,7 @@ export default ({ sub.endTime )} + {sub.type}