Show on mobile Update

This commit is contained in:
2025-12-03 18:58:24 +00:00
parent 84469e3753
commit 4202a22403
5 changed files with 18 additions and 0 deletions

View File

@@ -300,4 +300,8 @@
max-width: 100% !important; max-width: 100% !important;
width: 100%; width: 100%;
} }
.mobile-hidden {
display: none !important;
}
} }

View File

@@ -78,6 +78,7 @@
const isTooltip = $derived(line.type === "tooltip"); const isTooltip = $derived(line.type === "tooltip");
</script> </script>
<div class:mobile-hidden={line.mobile === false} style="display: contents">
{#if isBlank} {#if isBlank}
{#if inline}<span class="inline-blank"></span>{:else}<div {#if inline}<span class="inline-blank"></span>{:else}<div
class="tui-line blank" class="tui-line blank"
@@ -233,3 +234,4 @@
</div> </div>
{/if} {/if}
{/if} {/if}
</div>

View File

@@ -28,6 +28,7 @@ export interface BaseTerminalLine {
display?: 'flex' | 'block' | 'grid' | 'inline'; display?: 'flex' | 'block' | 'grid' | 'inline';
delay?: number; delay?: number;
style?: 'primary' | 'secondary' | 'accent' | 'warning' | 'error'; style?: 'primary' | 'secondary' | 'accent' | 'warning' | 'error';
mobile?: boolean;
} }
// Specific line types // Specific line types

View File

@@ -260,6 +260,7 @@ export const lines: TerminalLine[] = [
type: 'card', type: 'card',
id: 'music-player', id: 'music-player',
content: '', content: '',
mobile: false,
children: [ children: [
{ type: 'info', content: 'Loading playlist...' } { type: 'info', content: 'Loading playlist...' }
] ]

View File

@@ -39,4 +39,14 @@ export const lines: TerminalLine[] = [
{ type: 'output', content: '(&muted)•(&) (&orange)Skip typing animation(&) (&text, bold)(Y)(&)' , inline: true }, { type: 'output', content: '(&muted)•(&) (&orange)Skip typing animation(&) (&text, bold)(Y)(&)' , inline: true },
{ type: 'output', content: '(&muted)•(&) (&orange)Navigate to page(&) (&text, bold)(Ctrl/Cmd+ [#])(&)' , inline: true }, { type: 'output', content: '(&muted)•(&) (&orange)Navigate to page(&) (&text, bold)(Ctrl/Cmd+ [#])(&)' , inline: true },
{ type: 'blank', content: '' }, { type: 'blank', content: '' },
// list the themes
{ type: 'output', content: '(&accent)Themes:(&)', inline: true },
...themeOptions.map((theme, i) => (
{
type: 'output' as const,
content: `(&primary)${theme.label}(&) (&text, bold)[${i+1}](&)`,
inline: true
}
)),
{ type: 'blank', content: '' },
]; ];