mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-28 04:46:28 -08:00
change misc to clickable text instead of button effect
This commit is contained in:
2 files changed
+19
-2
No files matched your search
@@ -226,9 +226,9 @@ function UserExtendedSection({
|
||||
() => (
|
||||
<Box justifyContent="Center" grow="Yes">
|
||||
<Button
|
||||
variant="Secondary"
|
||||
size="300"
|
||||
fill="None"
|
||||
size="300"
|
||||
className={css.MiscDataToggleButton}
|
||||
onClick={() => setShowMisc(!showMisc)}
|
||||
after={miscDataIndex === -1 && <Icon size="50" src={Icons.ChevronBottom} />}
|
||||
style={{
|
||||
@@ -341,6 +341,7 @@ function UserExtendedSection({
|
||||
<Button
|
||||
size="300"
|
||||
fill="None"
|
||||
className={css.MiscDataToggleButton}
|
||||
onClick={() =>
|
||||
setMiscDataIndex(
|
||||
miscDataIndex === 0 ? unknownFields.length - 1 : miscDataIndex - 1
|
||||
@@ -356,6 +357,7 @@ function UserExtendedSection({
|
||||
<Button
|
||||
size="300"
|
||||
fill="None"
|
||||
className={css.MiscDataToggleButton}
|
||||
onClick={() => setMiscDataIndex((miscDataIndex + 1) % unknownFields.length)}
|
||||
style={{ color: textColor }}
|
||||
>
|
||||
|
||||
@@ -101,6 +101,21 @@ export const UserHeroChipThemed = style({
|
||||
transform: 'translateY(-1px)',
|
||||
},
|
||||
});
|
||||
|
||||
export const MiscDataToggleButton = style({
|
||||
backgroundColor: 'transparent',
|
||||
opacity: 0.75,
|
||||
selectors: {
|
||||
'&:hover': {
|
||||
opacity: 1,
|
||||
backgroundColor: 'transparent',
|
||||
transform: 'none !important',
|
||||
},
|
||||
'&:active': {
|
||||
transform: 'none !important',
|
||||
},
|
||||
},
|
||||
});
|
||||
export const UserHeroMenuItem = style({
|
||||
borderStyle: 'hidden',
|
||||
borderWidth: '1px',
|
||||
|
||||
Reference in new issue
Block a user