mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: disturb on tab change and no title select
This commit is contained in:
1 parent
8b6610151e
commit
c090ad6492
2 files changed
+11
-2
No files matched your search
@@ -403,6 +403,7 @@ export function Options({ thicknessRange, canvas, skeleton }: OptionsProps) {
|
|||||||
value={`${display}`}
|
value={`${display}`}
|
||||||
onValueChange={(value) => {
|
onValueChange={(value) => {
|
||||||
mutateTankopediaEphemeral((draft) => {
|
mutateTankopediaEphemeral((draft) => {
|
||||||
|
draft.disturbed = true;
|
||||||
draft.display = Number(value);
|
draft.display = Number(value);
|
||||||
draft.shootingRangeZoom = ShootingRangeZoom.Arcade;
|
draft.shootingRangeZoom = ShootingRangeZoom.Arcade;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -139,12 +139,17 @@ export function HeroSection({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
<Flex
|
<Flex
|
||||||
justify="center"
|
justify="center"
|
||||||
position={{ initial: 'relative', md: 'absolute' }}
|
position={{ initial: 'relative', md: 'absolute' }}
|
||||||
left={{ initial: '0', md: '5', lg: '9' }}
|
left={{
|
||||||
|
initial: '0',
|
||||||
|
md: disturbed ? '3' : '5',
|
||||||
|
lg: disturbed ? '7' : '9',
|
||||||
|
}}
|
||||||
py="4"
|
py="4"
|
||||||
top={{ initial: '8', md: '50%' }}
|
top={{ initial: '8', md: '50%' }}
|
||||||
style={{
|
style={{
|
||||||
transform: 'translate(0, -50%)',
|
transform: 'translate(0, -50%)',
|
||||||
transitionDuration: '200ms',
|
transitionDuration: '200ms',
|
||||||
|
userSelect: 'none',
|
||||||
}}
|
}}
|
||||||
direction="column"
|
direction="column"
|
||||||
align={{ initial: 'center', md: 'start' }}
|
align={{ initial: 'center', md: 'start' }}
|
||||||
@@ -182,7 +187,10 @@ export function HeroSection({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
<Box ml="3">
|
<Box ml="3">
|
||||||
<Text
|
<Text
|
||||||
color="gray"
|
color="gray"
|
||||||
size={{ initial: '3', lg: disturbed ? '4' : '5' }}
|
size={{
|
||||||
|
initial: disturbed ? '3' : '4',
|
||||||
|
lg: disturbed ? '4' : '5',
|
||||||
|
}}
|
||||||
weight="light"
|
weight="light"
|
||||||
ml={{
|
ml={{
|
||||||
initial: '0',
|
initial: '0',
|
||||||
|
|||||||
Reference in new issue
Block a user