Rename StickyBar and StickyBottom to StickyHeader and StickyFooter
This commit is contained in:
parent
896b40c873
commit
60690e0557
@ -5,7 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<script lang="ts">
|
||||
import type { ChangeNotetypeState } from "./lib";
|
||||
|
||||
import StickyBar from "components/StickyBar.svelte";
|
||||
import StickyHeader from "components/StickyHeader.svelte";
|
||||
import ButtonToolbar from "components/ButtonToolbar.svelte";
|
||||
import Item from "components/Item.svelte";
|
||||
import ButtonGroup from "components/ButtonGroup.svelte";
|
||||
@ -25,7 +25,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
}
|
||||
</script>
|
||||
|
||||
<StickyBar>
|
||||
<StickyHeader>
|
||||
<ButtonToolbar class="justify-content-between" size={2.3} wrap={false}>
|
||||
<Item>
|
||||
<ButtonGroup class="flex-grow-1">
|
||||
@ -48,4 +48,4 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<SaveButton {state} />
|
||||
</Item>
|
||||
</ButtonToolbar>
|
||||
</StickyBar>
|
||||
</StickyHeader>
|
||||
|
@ -10,7 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
export let height: number = 0;
|
||||
</script>
|
||||
|
||||
<footer {id} bind:offsetHeight={height} class={`container-fluid pt-1 ${className}`}>
|
||||
<footer {id} bind:offsetHeight={height} class="container-fluid pt-1 {className}">
|
||||
<slot />
|
||||
</footer>
|
||||
|
@ -8,12 +8,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
export { className as class };
|
||||
</script>
|
||||
|
||||
<nav {id} class={`container-fluid py-1 ${className}`}>
|
||||
<header {id} class="container-fluid pb-1 {className}">
|
||||
<slot />
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<style lang="scss">
|
||||
nav {
|
||||
header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
left: 0;
|
@ -10,7 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
import type Modal from "bootstrap/js/dist/modal";
|
||||
|
||||
import TextInputModal from "./TextInputModal.svelte";
|
||||
import StickyBar from "components/StickyBar.svelte";
|
||||
import StickyHeader from "components/StickyHeader.svelte";
|
||||
import ButtonToolbar from "components/ButtonToolbar.svelte";
|
||||
import Item from "components/Item.svelte";
|
||||
import ButtonGroup from "components/ButtonGroup.svelte";
|
||||
@ -87,7 +87,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
bind:modalKey
|
||||
/>
|
||||
|
||||
<StickyBar class="g-1">
|
||||
<StickyHeader class="g-1">
|
||||
<ButtonToolbar class="justify-content-between" size={2.3} wrap={false}>
|
||||
<Item>
|
||||
<ButtonGroup class="flex-grow-1">
|
||||
@ -115,4 +115,4 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
/>
|
||||
</Item>
|
||||
</ButtonToolbar>
|
||||
</StickyBar>
|
||||
</StickyHeader>
|
||||
|
@ -27,7 +27,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
<script lang="typescript">
|
||||
import { isApplePlatform } from "lib/platform";
|
||||
import StickyBar from "components/StickyBar.svelte";
|
||||
import StickyHeader from "components/StickyHeader.svelte";
|
||||
import ButtonToolbar from "components/ButtonToolbar.svelte";
|
||||
import Item from "components/Item.svelte";
|
||||
|
||||
@ -51,7 +51,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
export const templateButtons = {};
|
||||
</script>
|
||||
|
||||
<StickyBar>
|
||||
<StickyHeader>
|
||||
<ButtonToolbar {size} {wrap} api={toolbar}>
|
||||
<Item id="notetype">
|
||||
<NoteTypeButtons api={notetypeButtons} />
|
||||
@ -73,4 +73,4 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<TemplateButtons api={templateButtons} />
|
||||
</Item>
|
||||
</ButtonToolbar>
|
||||
</StickyBar>
|
||||
</StickyHeader>
|
||||
|
@ -6,7 +6,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
import { tick } from "svelte";
|
||||
import { isApplePlatform } from "lib/platform";
|
||||
import { bridgeCommand } from "lib/bridgecommand";
|
||||
import StickyBottom from "components/StickyBottom.svelte";
|
||||
import StickyFooter from "components/StickyFooter.svelte";
|
||||
import TagOptionsBadge from "./TagOptionsBadge.svelte";
|
||||
import TagEditMode from "./TagEditMode.svelte";
|
||||
import TagInput from "./TagInput.svelte";
|
||||
@ -390,7 +390,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
$: shortenTags = shortenTags || assumedRows > 2;
|
||||
</script>
|
||||
|
||||
<StickyBottom bind:height class="d-flex">
|
||||
<StickyFooter bind:height class="d-flex">
|
||||
{#if !wrap}
|
||||
<TagOptionsBadge
|
||||
--buttons-size="{size}rem"
|
||||
@ -503,7 +503,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<Tag>SPACER</Tag>
|
||||
</div>
|
||||
</ButtonToolbar>
|
||||
</StickyBottom>
|
||||
</StickyFooter>
|
||||
|
||||
<style lang="scss">
|
||||
.tag-spacer {
|
||||
|
Loading…
Reference in New Issue
Block a user