Skip to content

Commit

Permalink
Test (#458)
Browse files Browse the repository at this point in the history
* Editor: Fix height

* SubNav: Fix width

* Editor: Actually fix height
  • Loading branch information
IRHM authored Nov 29, 2023
1 parent 75c718e commit ea45edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/SubNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function SubNavItem({ icon, text }: SubNavItemProps) {
const elIcon = document.querySelector<HTMLElement>(".navlink.active .navlink-icon");
const elText = document.querySelector<HTMLElement>(".navlink.active .navlink-text");
if (el && elIcon && elText) {
el.classList.add(...inactiveLinkClass);
el.classList.add(...inactiveLinkClass, "!w-[50px]");
elText.classList.add(...inactiveTextClass, "!w-0");
elIcon.classList.remove("!mr-2");
}
Expand All @@ -44,7 +44,7 @@ export function SubNavItem({ icon, text }: SubNavItemProps) {
const elIcon = document.querySelector<HTMLElement>(".navlink.active .navlink-icon");
const elText = document.querySelector<HTMLElement>(".navlink.active .navlink-text");
if (el && elIcon && elText) {
el.classList.remove(...inactiveLinkClass);
el.classList.remove(...inactiveLinkClass, "!w-[50px]");
elText.classList.remove(...inactiveTextClass, "!w-0");
elIcon.classList.add("!mr-2");
}
Expand Down
2 changes: 1 addition & 1 deletion src/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function VideoEditor() {
} = useEditor(playerRef, timelineRef, progressBarRef, clipsBarRef, genState.videoEditorVolume);

return (
<div className="flex h-[calc(100vh_-_77px)] flex-col gap-1.5 my-1.5 h-full">
<div className="flex flex-col gap-1.5 my-1.5 h-[calc(100vh-77px)]">
<div className="flex gap-1.5 mx-1.5">
<Tooltip text="Back To Videos">
<Button
Expand Down

0 comments on commit ea45edc

Please sign in to comment.