@sierra-95/svelte-scaffold 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@
5
5
  } from './tools.js';
6
6
  import type { Editor } from "@tiptap/core";
7
7
  import './styles/controls.css';
8
+ import {isMobile} from '../../../index.js';
8
9
 
9
10
  export let editor: Editor;
10
11
  export let exportText: string;
@@ -49,11 +50,11 @@
49
50
  <Save bind:content {exportText} {editor} />
50
51
  {#each menuItems as item, index (item.id)}
51
52
  <button
53
+ style="padding: 2px 4px;"
54
+ aria-label={item.label}
52
55
  class={` ${activeTab === item.id ? 'active' : ''}`}
53
56
  on:click={() => {activeTab = item.id}}
54
- >
55
- <i class="fa {item.icon}"></i>
56
- <span>{item.label}</span>
57
+ ><i class="fa {item.icon}"></i><span hidden={$isMobile} style="margin-left: 5px;">{item.label}</span>
57
58
  </button>
58
59
  {/each}
59
60
  </div>
@@ -25,5 +25,4 @@
25
25
  <Button
26
26
  onclick={onSave}
27
27
  disabled={disabled}
28
- endIcon="fa-regular fa-floppy-disk"
29
28
  >{exportText}</Button>
@@ -2,20 +2,6 @@
2
2
  margin: 0px 10px;
3
3
  padding-top: 5px;
4
4
  }
5
- #editor #controls .controls-menu i:not(#sierra-button i){
6
- display: none;
7
- }
8
- #editor #controls .controls-menu #sierra-menu-item i:not(#sierra-button i){
9
- display: inline-block;
10
- }
11
- @media (max-width: 400px) {
12
- #editor #controls .controls-menu span {
13
- display: none;
14
- }
15
- #editor #controls .controls-menu i:not(#sierra-button i) {
16
- display: inline-block;
17
- }
18
- }
19
5
  #editor #controls .controls {
20
6
  margin-top: 5px;
21
7
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",