Skip to content

Commit

Permalink
Merge pull request #8 from mjczone/develop
Browse files Browse the repository at this point in the history
Styling updates to docs to deal with overflow
  • Loading branch information
mattjcowan authored Dec 13, 2024
2 parents 6b69365 + 440f936 commit ad01faf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 24 deletions.
9 changes: 7 additions & 2 deletions docs/components/docs-header.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<script>
const { ref, defineComponent } = Vue;
const { ref, defineComponent, computed } = Vue;
export default defineComponent({
name: "DocsHeaderToolbar",
props: ["title", "repositoryUrl", "version"],
emits: ["toggleLeftDrawer"],
setup(props, ctx) {
const baseUrl = computed(() => {
const x = window.location.origin + window.location.pathname;
return x.replace(/\/+$/, "");
});
function toggleLeftDrawer() {
ctx.emit("toggleLeftDrawer");
}
return {
baseUrl,
toggleLeftDrawer,
};
},
Expand All @@ -25,7 +30,7 @@ export default defineComponent({
unelevated
:ripple="false"
no-caps
href="/"
:href="`${baseUrl}/`"
class="btn--no-hover q-px-md q-py-md page-title"
:label="title"
>
Expand Down
9 changes: 8 additions & 1 deletion docs/components/docs-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
v-model:selected-item="selectedPath"
></docs-drawer>
<q-page-container>
<q-page v-if="displayComponent">
<q-page v-if="displayComponent" :style-fn="qPageStyleFn">
<component
:is="displayComponent"
:config="$store.state.config"
Expand Down Expand Up @@ -162,7 +162,14 @@ export default defineComponent({
{ immediate: true }
);
function qPageStyleFn(offset, height) {
// console.log("qPageStyleFn", offset, height);
// return { minHeight: offset + "px" };
return {};
}
return {
qPageStyleFn,
displayComponent,
data,
leftDrawerOpen,
Expand Down
2 changes: 1 addition & 1 deletion docs/content/usage/extension-methods/table-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ bool dropped = await db.DropTableIfExistsAsync("app", "app_employees", ...);
// RENAME: Rename a database table
bool renamed = await db.RenameTableIfExistsAsync("app", "app_employees", /* new name */ "app_staff", ...);

// TRUNCATE: Drop a database table
// TRUNCATE: Truncate a database table
bool truncated = await db.TruncateTableIfExistsAsync("app", "app_employees", ...);
```
1 change: 1 addition & 0 deletions docs/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ p > code {
.q-page {
padding-left: 20px;
padding-right: 20px;
padding-bottom: 10px;

.content-page {
> div > .q-img {
Expand Down
2 changes: 1 addition & 1 deletion docs/main-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions docs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,25 +134,6 @@ async function boot() {
]);
}

// from: https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-property-value
// example: People.sort(dynamicSort("Name"));
function dynamicSort(property) {
var sortOrder = 1;
if (property[0] === "-") {
sortOrder = -1;
property = property.substr(1);
}
return function (a, b) {
/*
* next line works with strings and numbers,
* and you may want to customize it to your needs
*/
var result =
a[property] < b[property] ? -1 : a[property] > b[property] ? 1 : 0;
return result * sortOrder;
};
}

/**
* Create a DOM element from an HTML string with a single root element
*/
Expand Down

0 comments on commit ad01faf

Please sign in to comment.