Skip to content

Commit f196bf4

Browse files
committed
FIX offline section layout
1 parent 4881d5f commit f196bf4

7 files changed

Lines changed: 31 additions & 14 deletions

File tree

docs-src/src/components/checked-list.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const defaultStyles: Record<string, CSSProperties> = {
3131
fontStyle: 'normal',
3232
fontWeight: 700,
3333
lineHeight: 'normal',
34-
maxWidth: 306,
3534
},
3635
highlight: {
3736
color: '#e6007a',

docs-src/src/components/offline-section.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export function OfflineSection(props: {
3939
</p>
4040

4141
<CheckedList className='centered-mobile' style={{
42-
maxWidth: 360
4342
}}>
4443
<>
4544
Keep your {getAppName(props)} app running <b>offline</b>

docs-src/src/components/slider.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ export function Slider({ items, width = 300, gap = 28 }: SliderProps) {
194194

195195
return (
196196
<div style={styles.root}>
197-
<PrevArrow className='flex hide-mobile' onClick={() => scrollByItems(-1)} />
197+
<PrevArrow className='flex hide-mobile' onClick={() => scrollByItems(-1)} style={{
198+
zIndex: 9
199+
}} />
198200
<div
199201
ref={viewportRef}
200202
style={styles.viewport}
@@ -221,6 +223,7 @@ export function NextArrow(props: any) {
221223
className={className}
222224
style={{
223225
...style,
226+
'user-select': 'none',
224227
position: 'absolute',
225228
top: 0,
226229
right: -15,
@@ -244,6 +247,7 @@ export function PrevArrow(props: any) {
244247
className={className}
245248
style={{
246249
...style,
250+
'user-select': 'none',
247251
position: 'absolute',
248252
top: 0,
249253
left: 0,

docs-src/src/css/custom.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ body {
608608
display: flex;
609609
flex-direction: column;
610610
background: var(--bg-color-dark);
611-
padding: 12px 12px 9px 12px;
612611
width: 300px;
613612
}
614613

@@ -619,9 +618,7 @@ body {
619618
}
620619

621620
.slider-content .slider-profile {
622-
display: flex;
623621
margin-top: 30px;
624-
gap: 10px;
625622
}
626623

627624
.slider-content .slider-profile img {
@@ -641,7 +638,7 @@ body {
641638
}
642639

643640
.slider-content .slider-profile .slider-info {
644-
margin-left: 10px;
641+
margin-left: 16px;
645642
width: 70%;
646643
}
647644

@@ -843,9 +840,16 @@ body {
843840
padding-right: 10px;
844841
}
845842

843+
.width-140-120 {
844+
width: 140px;
845+
}
846846

847847

848848
@media (max-width: 900px) {
849+
.width-140-120 {
850+
width: 120px;
851+
}
852+
849853
.margin-right-6-8 {
850854
margin-right: 8px;
851855
}
@@ -1184,7 +1188,8 @@ body {
11841188
}
11851189

11861190
.block.offline-first p {
1187-
margin-top: 31px;
1191+
margin-top: 32px;
1192+
margin-bottom: 32px;
11881193
}
11891194

11901195

@@ -3238,7 +3243,7 @@ footer a:visited {
32383243
.slider-content .slider-profile {
32393244
display: flex;
32403245
margin-top: auto;
3241-
gap: 16px;
3246+
gap: 0px;
32423247
align-items: center;
32433248
}
32443249

docs-src/src/theme/Footer/index.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function FooterWrapper() {
9898
href="/"
9999
className="footer-logo-button"
100100
>
101-
<img src="/files/logo/logo_text_white.svg" alt="RxDB" loading="lazy" style={{ width: 100 }} />
101+
<img src="/files/logo/logo_text_white.svg" alt="RxDB" loading="lazy" className='width-140-120' />
102102
</a>
103103
<div className="footer-community-links">
104104
{footerConfig.communityLinks.map((link, index) => (
@@ -146,15 +146,23 @@ export default function FooterWrapper() {
146146
{link.label}
147147
</a>
148148
))}
149-
{/* <span className="footer-rights">{rightsText}</span> */}
150149
</div>
151-
152-
153-
154150
</div>
155151
</div>
156152
</div>
157153
</>
154+
<div
155+
className='navbar-line'
156+
style={{
157+
display: 'block',
158+
zIndex: 10,
159+
height: 1.5,
160+
backgroundColor: 'var(--color-top)',
161+
borderTopRightRadius: 2,
162+
borderBottomRightRadius: 2,
163+
width: '100%'
164+
}}
165+
></div>
158166
</>
159167
);
160168
}

docs-src/src/theme/Navbar/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
} from 'react';
66
import Navbar from '@theme-original/Navbar';
77

8+
9+
810
export default function NavbarWrapper(props) {
911
const [scrollPosition, setScrollPosition] = useState(0);
1012
const handleScroll = () => {
1.59 KB
Loading

0 commit comments

Comments
 (0)