mirror of
https://github.com/Qortal/q-tube.git
synced 2025-02-11 09:45:51 +00:00
Bugfixes
Comment replies use full width available for username Fixed bug in PublishVideo.tsx that erased video durations when videos to publish are added twice
This commit is contained in:
parent
f687b3025d
commit
d0841e4db5
@ -147,7 +147,12 @@ export const PublishVideo = ({
|
||||
const assembleVideoDurations = () => {
|
||||
if (files.length === videoDurations.value.length) return;
|
||||
const newArray: number[] = [];
|
||||
files.map(() => newArray.push(0));
|
||||
|
||||
files.map((file, index) =>
|
||||
newArray.push(
|
||||
videoDurations.value[index] ? videoDurations.value[index] : 0
|
||||
)
|
||||
);
|
||||
videoDurations.value = [...newArray];
|
||||
};
|
||||
|
||||
|
@ -28,9 +28,7 @@ export const FrameExtractor = ({
|
||||
|
||||
const newVideoDurations = [...videoDurations.value];
|
||||
newVideoDurations[index] = duration;
|
||||
console.log("durations before update: ", videoDurations.value);
|
||||
videoDurations.value = [...newVideoDurations];
|
||||
console.log("durations after update: ", videoDurations.value);
|
||||
const section = duration / 4;
|
||||
const timestamps = [];
|
||||
|
||||
|
@ -259,7 +259,9 @@ export const CommentCard = ({
|
||||
alt={`${name}'s avatar`}
|
||||
sx={{ width: "35px", height: "35px" }}
|
||||
/>
|
||||
<AuthorTextComment>{name}</AuthorTextComment>
|
||||
<AuthorTextComment sx={{ width: "max-content" }}>
|
||||
{name}
|
||||
</AuthorTextComment>
|
||||
</Box>
|
||||
<StyledCardColComment
|
||||
sx={{
|
||||
|
@ -50,7 +50,6 @@ export const Home = ({ mode }: HomeProps) => {
|
||||
<>
|
||||
<Box sx={{ ...homeBaseSX, ...homeColumns }}>
|
||||
<SearchSidebar onSearch={getVideosHandler} />
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
width: "100%",
|
||||
@ -95,7 +94,6 @@ export const Home = ({ mode }: HomeProps) => {
|
||||
</TabPanel>
|
||||
</TabContext>
|
||||
</Box>
|
||||
|
||||
<ListSuperLikeContainer />
|
||||
</Box>
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user