mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 09:31:17 -08:00
Fix gradient theme base issues (#1007)
<!-- Please read https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before submitting your pull request --> ### Description <!-- Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Quite some of the fixes are bodges to the fold library since we do not host a modified folds library <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/1afd248a-b655-4c0d-94a1-8a9cb7a10ea1" /> 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 weariness of dying of a heatstroke at 38C wo an AC :<
This commit is contained in:
10 files changed
+19
-5
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Fix codebase issues with gadient themes
|
||||
@@ -444,6 +444,7 @@ export const CustomEditor = forwardRef<HTMLDivElement, CustomEditorProps>(
|
||||
onBlur={() => {
|
||||
if (mobileOrTablet()) ReactEditor.focus(editor);
|
||||
}}
|
||||
style={{ boxShadow: 'none' }}
|
||||
/>
|
||||
</Scroll>
|
||||
{(hasAfter || showResponsiveAfterInline) && (
|
||||
|
||||
@@ -322,7 +322,7 @@ function UserHeroNameInner({
|
||||
} else isSuccess.current = false;
|
||||
setCopied();
|
||||
}}
|
||||
style={{ backgroundColor: '#0000', padding: '0' }}
|
||||
style={{ backgroundColor: 'transparent', padding: '0' }}
|
||||
onPointerEnter={() => setIsHovered(true)}
|
||||
onPointerLeave={() => setIsHovered(false)}
|
||||
before={`@${username}`}
|
||||
|
||||
@@ -45,6 +45,7 @@ export const UserAvatarContainer = style({
|
||||
top: 0,
|
||||
transform: 'translateY(-50%)',
|
||||
backgroundColor: color.Surface.Container,
|
||||
borderRadius: config.borderWidth.B400,
|
||||
});
|
||||
export const UserHeroStatusContainer = style({
|
||||
position: 'relative',
|
||||
|
||||
@@ -1632,6 +1632,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
variant="SurfaceVariant"
|
||||
size="300"
|
||||
radii="300"
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
title={editorOldAddFile ? 'Upload File' : 'Add'}
|
||||
aria-label={editorOldAddFile ? 'Upload and attach a File' : 'Add new Item'}
|
||||
>
|
||||
@@ -1649,6 +1650,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
radii="300"
|
||||
title={showAudioRecorder ? 'Stop recording' : 'Record audio message'}
|
||||
aria-label={showAudioRecorder ? 'Stop recording' : 'Record audio message'}
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
aria-pressed={showAudioRecorder}
|
||||
onClick={() => {
|
||||
if (mobileOrTablet() && !showAudioRecorder) return;
|
||||
@@ -1752,6 +1754,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
variant="SurfaceVariant"
|
||||
size="300"
|
||||
radii="300"
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
title="open sticker picker"
|
||||
aria-label="Open sticker picker"
|
||||
>
|
||||
@@ -1772,6 +1775,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
variant="SurfaceVariant"
|
||||
size="300"
|
||||
radii="300"
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
title="open emoji picker"
|
||||
aria-label="Open emoji picker"
|
||||
>
|
||||
@@ -1835,6 +1839,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
<IconButton
|
||||
title="Send Message"
|
||||
aria-label="Send your composed Message"
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
onClick={() => {
|
||||
if (isLongPress.current) {
|
||||
isLongPress.current = false;
|
||||
@@ -1879,6 +1884,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
title="Schedule Message"
|
||||
aria-label="Schedule message send"
|
||||
variant={scheduledTime ? 'Primary' : 'SurfaceVariant'}
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
size="300"
|
||||
radii="0"
|
||||
className={css.SplitChevronButton}
|
||||
|
||||
@@ -12,6 +12,8 @@ export const TimelineFloat = recipe({
|
||||
transform: 'translateX(-50%)',
|
||||
zIndex: 10,
|
||||
minWidth: 'max-content',
|
||||
overflow: 'hidden',
|
||||
borderRadius: config.radii.Pill,
|
||||
},
|
||||
],
|
||||
variants: {
|
||||
|
||||
@@ -195,8 +195,8 @@ export function RoomView({ eventId }: { eventId?: string }) {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{hideReads ? <RoomViewFollowingPlaceholder /> : <RoomViewFollowing room={room} />}
|
||||
</div>
|
||||
{hideReads ? <RoomViewFollowingPlaceholder /> : <RoomViewFollowing room={room} />}
|
||||
</Box>
|
||||
</SwipeableChatWrapper>
|
||||
</Page>
|
||||
|
||||
@@ -16,7 +16,6 @@ export const RoomViewFollowing = recipe({
|
||||
minHeight: toRem(28),
|
||||
padding: `0 ${config.space.S400}`,
|
||||
width: '100%',
|
||||
backgroundColor: color.Surface.Container,
|
||||
color: color.Surface.OnContainer,
|
||||
outline: 'none',
|
||||
userSelect: 'none',
|
||||
|
||||
@@ -334,7 +334,7 @@ function SpaceHeader({ hideText, mx }: { hideText?: boolean; mx: MatrixClient })
|
||||
<IconButton
|
||||
aria-pressed={!!menuAnchor}
|
||||
variant="Background"
|
||||
style={hasBanner ? { backgroundColor: '#0000', color: '#fff' } : {}}
|
||||
style={hasBanner ? { backgroundColor: 'transparent', color: '#fff' } : {}}
|
||||
onClick={handleOpenMenu}
|
||||
>
|
||||
{composerIcon(DotsThreeOutlineVerticalIcon, {
|
||||
|
||||
@@ -8,7 +8,7 @@ export const RoomCoverNavContainer = style({
|
||||
width: '100%',
|
||||
zIndex: '100',
|
||||
top: '0',
|
||||
background: 'linear-gradient(180deg, #000 0%, #0000 100%)',
|
||||
background: 'linear-gradient(180deg, #000 0%, transparent 100%)',
|
||||
});
|
||||
export const RoomCoverlessNavContainer = recipe({
|
||||
base: {
|
||||
|
||||
Reference in new issue
Block a user