-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Fix audio element UI overflow on Firefox
Also added better display when a media bubble src is a variable Closes #1742
- Loading branch information
1 parent
041b817
commit d51cf00
Showing
8 changed files
with
60 additions
and
36 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
apps/builder/src/features/blocks/bubbles/audio/components/AudioBubbleNode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
apps/builder/src/features/blocks/bubbles/image/components/ImageBubbleContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 13 additions & 10 deletions
23
apps/builder/src/features/blocks/bubbles/video/components/VideoBubbleContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apps/builder/src/features/graph/components/nodes/block/VariableTag.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { chakra } from '@chakra-ui/react' | ||
|
||
type Props = { | ||
variableName: string | ||
} | ||
|
||
export const VariableTag = ({ variableName }: Props) => ( | ||
<chakra.span bgColor="orange.400" color="white" rounded="md" py="0.5" px="1"> | ||
{variableName} | ||
</chakra.span> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Variable } from './types' | ||
|
||
export const findUniqueVariableValue = | ||
export const findUniqueVariable = | ||
(variables: Variable[]) => | ||
(value: string | undefined): Variable['value'] => { | ||
(value: string | undefined): Variable | null => { | ||
if (!value || !value.startsWith('{{') || !value.endsWith('}}')) return null | ||
const variableName = value.slice(2, -2) | ||
const variable = variables.find( | ||
(variable) => variable.name === variableName | ||
) | ||
return variable?.value ?? null | ||
return variable ?? null | ||
} |