File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333
3434< div role= " none" class = " primary-sidebar" >
3535 {#if $isSmallScreen}
36- < h2> {$_ (' assets' )}< / h2>
36+ < header>
37+ < h2> {$_ (' assets' )}< / h2>
38+ < / header>
3739 < QuickSearchBar
3840 onclick= {(event ) => {
3941 event .preventDefault ();
Original file line number Diff line number Diff line change 5252 background-color : var (--sui-primary-background-color );
5353 }
5454
55- h2 {
55+ // Mobile header
56+ header {
5657 display : flex ;
5758 align-items : center ;
58- padding : 0 20px ;
59+ justify-content : space-between ;
60+ padding : 0 10px ;
5961 height : var (--sui-primary-toolbar-size );
60- font-size : var (--sui-font-size-x-large );
62+
63+ h2 {
64+ padding : 0 10px ;
65+ font-size : var (--sui-font-size-x-large );
66+ }
6167 }
6268
6369 .sui.search-bar {
Original file line number Diff line number Diff line change 44 import { _ , locale as appLocale } from ' svelte-i18n' ;
55
66 import SingletonOption from ' $lib/components/contents/list/singleton-option.svelte' ;
7+ import PublishButton from ' $lib/components/global/toolbar/items/publish-button.svelte' ;
78 import QuickSearchBar from ' $lib/components/global/toolbar/items/quick-search-bar.svelte' ;
89 import { goto } from ' $lib/services/app/navigation' ;
910 import { siteConfig } from ' $lib/services/config' ;
2021
2122< div role= " none" class = " primary-sidebar" >
2223 {#if $isSmallScreen}
23- < h2> {$_ (' contents' )}< / h2>
24+ < header>
25+ < h2> {$_ (' contents' )}< / h2>
26+ < PublishButton / >
27+ < / header>
2428 < QuickSearchBar
2529 onclick= {(event ) => {
2630 event .preventDefault ();
Original file line number Diff line number Diff line change 44
55 import { backend , isLastCommitPublished } from ' $lib/services/backends' ;
66 import { skipCIConfigured } from ' $lib/services/backends/git/shared/integration' ;
7+ import { isSmallScreen } from ' $lib/services/user/env' ;
78 import { prefs } from ' $lib/services/user/prefs' ;
89
910 const { deployHookURL } = $derived ($prefs);
4748{#if $skipCIConfigured}
4849 < Button
4950 variant= " secondary"
51+ size= {$isSmallScreen ? ' small' : ' medium' }
5052 label= {$_ (' publish_changes' )}
5153 disabled= {! canPublish}
5254 onclick= {() => publish ()}
You can’t perform that action at this time.
0 commit comments