Skip to content

Commit e0c3a61

Browse files
committed
chore: 🤖 adjust layout to fit in tlink view
1 parent 2b732e2 commit e0c3a61

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎redbrick-rotate-game/src/cards/Spin.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const Spin: React.FC = () => {
265265
</Dialog>
266266
<div className='flex flex-col items-center overflow-hidden relative'>
267267
<img
268-
className='mt-4 max-w-40'
268+
className='mt-4 max-w-32'
269269
src='https://resources.smartlayer.network/smart-token-store/images/redbrick-spin/logo.png'
270270
alt='logo'
271271
/>
@@ -274,27 +274,29 @@ export const Spin: React.FC = () => {
274274
src='https://resources.smartlayer.network/smart-token-store/images/redbrick-spin/machine-body.png'
275275
alt='machine-body'
276276
/>
277-
<CountDown />
277+
<div className='top-[456px] absolute'>
278+
<CountDown />
279+
</div>
278280
{messageOrButton}
279281
<img
280-
className='max-w-[19rem] top-44 absolute'
282+
className='max-w-[19rem] top-[158px] absolute'
281283
src='https://resources.smartlayer.network/smart-token-store/images/redbrick-spin/cover.png'
282284
alt='cover'
283285
/>
284-
<div className='max-w-52 top-56 absolute'>
286+
<div className='max-w-52 top-[206px] absolute'>
285287
<Spinner
286288
isSpinning={isSpinning}
287289
itemIndex={itemIndex}
288290
onSpinEnd={onSpinEnd}
289291
/>
290292
</div>
291293
<img
292-
className='max-w-16 top-[170px] absolute z-10'
294+
className='max-w-16 top-[154px] absolute z-10'
293295
src='https://resources.smartlayer.network/smart-token-store/images/redbrick-spin/arrow.png'
294296
alt='arrow'
295297
/>
296298
<img
297-
className='max-w-16 top-[296px] absolute z-10'
299+
className='max-w-16 top-[278px] absolute z-10'
298300
src='https://resources.smartlayer.network/smart-token-store/images/redbrick-spin/pin.png'
299301
alt='pin'
300302
/>

‎redbrick-rotate-game/src/components/count-down.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function CountDown() {
3636
}, [targetTime]);
3737

3838
return (
39-
<div className='absolute top-[472px] flex gap-4 items-center'>
39+
<div className='flex gap-4 items-center'>
4040
<div className="text-gray-200 text-md">Game reset:</div>
4141
<div className="text-white text-lg font-semibold">{timeLeft}</div>
4242
</div>

0 commit comments

Comments
 (0)