Skip to content

Commit 1676b09

Browse files
committed
fix grid system for smaller view
1 parent db52a2b commit 1676b09

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

webui/src/views/DocsView.vue

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,28 @@ main.has-sidebar {
235235
padding-bottom: 3rem;
236236
}
237237
.breadcrumb {
238-
width: 100%; /*calc(100vw - 290px - 2rem);*/
238+
--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='currentColor' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");;
239+
240+
width: 100%;
239241
font-size: 0.85rem;
240242
}
241243
ol.breadcrumb {
242244
margin-bottom: 0;
243245
}
246+
.breadcrumb-item + .breadcrumb-item {
247+
padding-left: 4px;
248+
}
249+
.breadcrumb-item + .breadcrumb-item::before {
250+
line-height: 21px;
251+
padding-right: 4px;
252+
}
244253
.content {
245254
line-height: 1.5rem;
246255
font-size: 1rem;
247256
}
248257
249258
.content h1 {
250-
margin-top: 10px;
259+
margin-top: 15px;
251260
font-size: 2.25rem;
252261
}
253262
@@ -347,6 +356,13 @@ pre {
347356
font-size: 0.85rem;
348357
}
349358
@media only screen and (max-width: 600px) {
359+
main.has-sidebar {
360+
display: grid;
361+
grid-template-columns: auto;
362+
grid-template-areas: "doc";
363+
}
364+
365+
350366
pre {
351367
max-width: 350px !important;
352368
}

0 commit comments

Comments
 (0)