Fix video player sometimes not playing (#1031)

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix made courtesy of Parfait

With this occassion i took the liberty to fix more gradient theme things
maybe maybe

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
Written w the assistance of someone giving me the diff
This commit is contained in:
Shea authored and GitHub committed 2026-07-08 14:51:37 +00:00
commit 3786a32e6e
9 files changed
+28 -7

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
default: patch
---
Fix video player sometimes not working
+1 -1
View File
@@ -38,7 +38,7 @@ type WaitingMessageProps = {
function WaitingMessage({ message }: WaitingMessageProps) {
return (
<Box alignItems="Center" gap="200">
<Spinner variant="Secondary" size="200" />
<Spinner variant="Secondary" size="200" style={{ backgroundColor: 'transparent' }} />
<Text size="T300">{message}</Text>
</Box>
);
+1
View File
@@ -17,6 +17,7 @@ export const ImagePixelated = style({
export const Video = style([
DefaultReset,
{
position: 'relative',
objectFit: 'contain',
width: '100%',
height: '100%',
@@ -155,7 +155,7 @@ export function MessageDeleteInternal({ room, mEvent, onClose }: MessageDeleteIn
variant="Critical"
before={
deleteState.status === AsyncStatus.Loading ? (
<Spinner fill="Solid" variant="Critical" size="200" />
<Spinner variant="Secondary" size="200" style={{ backgroundColor: 'transparent' }} />
) : undefined
}
aria-disabled={deleteState.status === AsyncStatus.Loading}
@@ -156,7 +156,7 @@ export function MessageReportInternal({ room, mEvent, onClose }: MessageReportIn
variant="Critical"
before={
reportState.status === AsyncStatus.Loading ? (
<Spinner fill="Solid" variant="Critical" size="200" />
<Spinner variant="Secondary" size="200" style={{ backgroundColor: 'transparent' }} />
) : undefined
}
aria-disabled={
+10 -1
View File
@@ -324,7 +324,16 @@ export const RoomCard = as<'div', RoomCardProps>(
variant="Secondary"
size="300"
disabled={joining}
before={joining && <Spinner size="50" variant="Secondary" fill="Soft" />}
before={
joining && (
<Spinner
size="50"
variant="Secondary"
fill="Soft"
style={{ background: 'transparent' }}
/>
)
}
>
<Text size="B300" truncate>
{joining ? 'Joining' : 'Join'}
+6 -1
View File
@@ -158,7 +158,12 @@ export const RoomIntro = as<'div', RoomIntroProps>(({ room, ...props }, ref) =>
disabled={prevRoomState.status === AsyncStatus.Loading}
after={
prevRoomState.status === AsyncStatus.Loading ? (
<Spinner size="50" variant="Secondary" fill="Soft" />
<Spinner
size="50"
variant="Secondary"
fill="Soft"
style={{ background: 'transparent' }}
/>
) : undefined
}
>
+1
View File
@@ -1814,6 +1814,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
variant="SurfaceVariant"
size="300"
radii="300"
style={{ backgroundColor: 'transparent' }}
>
{composerIcon(GifIcon, {
weight: emojiBoardTab === EmojiBoardTab.Gif ? 'fill' : 'regular',
+2 -2
View File
@@ -1001,13 +1001,13 @@ export function RoomTimeline({
{showBackPaginationSpinner && (
<TimelineFloat position="Top" style={timelineTopFloatLift}>
<Spinner variant="Secondary" size="400" />
<Spinner variant="Secondary" size="400" style={{ backgroundColor: 'transparent' }} />
</TimelineFloat>
)}
{showFrontPaginationSpinner && (
<TimelineFloat position="Bottom" style={timelineBottomFloatLift}>
<Spinner variant="Secondary" size="400" />
<Spinner variant="Secondary" size="400" style={{ backgroundColor: 'transparent' }} />
</TimelineFloat>
)}