mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 16:19:43 +08:00
fix(core): audio block actions not showing (#12527)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated audio block containers to remove borders and allow visible overflow, improving the appearance of audio attachments. - **Bug Fixes** - Ensured that the actions field is always present in audio transcription job results, defaulting to an empty string when not specified. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { cssVar } from '@toeverything/theme';
|
import { cssVar } from '@toeverything/theme';
|
||||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||||
import { style } from '@vanilla-extract/css';
|
import { globalStyle, style } from '@vanilla-extract/css';
|
||||||
|
|
||||||
export const root = style({
|
export const root = style({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -49,3 +49,9 @@ export const reloadButton = style({
|
|||||||
export const reloadButtonIcon = style({
|
export const reloadButtonIcon = style({
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** Render our own border for audio block */
|
||||||
|
globalStyle(`.affine-attachment-container:has(${root})`, {
|
||||||
|
border: 'none',
|
||||||
|
overflow: 'visible',
|
||||||
|
});
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ export class AudioTranscriptionJob extends Entity<{
|
|||||||
const result: TranscriptionResult = {
|
const result: TranscriptionResult = {
|
||||||
summary: claimedJob.summary ?? '',
|
summary: claimedJob.summary ?? '',
|
||||||
title: claimedJob.title ?? '',
|
title: claimedJob.title ?? '',
|
||||||
|
actions: claimedJob.actions ?? '',
|
||||||
segments:
|
segments:
|
||||||
claimedJob.transcription?.map(segment => ({
|
claimedJob.transcription?.map(segment => ({
|
||||||
speaker: segment.speaker,
|
speaker: segment.speaker,
|
||||||
|
|||||||
Reference in New Issue
Block a user