拆镜复刻
This commit is contained in:
@@ -29,7 +29,7 @@ function isRecord(value: unknown): value is Record<string, JsonValue> {
|
||||
}
|
||||
|
||||
function ReadonlyBlock({ value }: { value: JsonValue }) {
|
||||
const text = stringifySchemaValue(value);
|
||||
const text = value === 'true' ? '是' : value === 'false' ? '否' : stringifySchemaValue(value);
|
||||
return shouldUseSchemaTextArea(value) ? (
|
||||
<TextArea value={text} rows={Math.min(6, Math.max(2, Math.ceil(text.length / 42)))} disabled style={{ borderRadius: 8, color: '#64748b' }} />
|
||||
) : (
|
||||
|
||||
@@ -466,7 +466,7 @@ const VideoTrimPicker: React.FC<VideoTrimPickerProps> = ({
|
||||
title={title}
|
||||
open={open}
|
||||
onCancel={onCancel}
|
||||
width={980}
|
||||
width={Math.min(window.innerWidth - 40, 1400)}
|
||||
destroyOnHidden
|
||||
footer={[
|
||||
<Button key="cancel" onClick={onCancel} disabled={loading} style={{ borderRadius: 8, border: '1px solid rgba(99, 102, 241, 0.2)', color: '#6366f1' }}>
|
||||
@@ -538,12 +538,13 @@ const VideoTrimPicker: React.FC<VideoTrimPickerProps> = ({
|
||||
<div
|
||||
style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: `repeat(${Math.max(frames.length, 1)}, minmax(42px, 1fr))`,
|
||||
gridTemplateColumns: `repeat(${Math.max(frames.length, 1)}, minmax(0, 1fr))`,
|
||||
height: 86,
|
||||
overflow: 'hidden',
|
||||
borderRadius: 12,
|
||||
background: '#fff',
|
||||
position: 'relative',
|
||||
gap: 1,
|
||||
}}
|
||||
>
|
||||
{frameLoading && frames.length === 0 ? (
|
||||
@@ -588,10 +589,10 @@ const VideoTrimPicker: React.FC<VideoTrimPickerProps> = ({
|
||||
<span
|
||||
style={{
|
||||
position: 'absolute',
|
||||
left: 4,
|
||||
left: 0,
|
||||
bottom: 3,
|
||||
color: '#fff',
|
||||
fontSize: 11,
|
||||
color: '#ffffffff',
|
||||
fontSize: 10,
|
||||
textShadow: '0 1px 3px rgba(0,0,0,.7)',
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user