|
30 | 30 | {/if} |
31 | 31 |
|
32 | 32 | <div |
33 | | - class="offcanvas offcanvas-start bg-primary h-100" |
| 33 | + class="offcanvas offcanvas-start bg-primary h-100 p-2 rounded-end-4" |
34 | 34 | tabindex="-1" |
35 | 35 | id="sidebar" |
36 | 36 | aria-labelledby="sidebarLabel" |
37 | 37 | class:offcanvas-lg={$isSidebarOpen}> |
38 | 38 | <div class="offcanvas-body p-0"> |
39 | | - <div |
40 | | - class="container-fluid pb-5 position-relative" |
41 | | - style="min-height: 100%;"> |
| 39 | + <div class="container-fluid position-relative"> |
42 | 40 | <!-- Sidebar Toggler & Logo --> |
43 | 41 | <div class="navbar navbar-expand navbar-dark bg-body-primary"> |
44 | 42 | <button |
|
52 | 50 | </button> |
53 | 51 |
|
54 | 52 | <a class="navbar-brand m-auto position-relative focus-ring" href="{base}/"> |
55 | | - <img alt="Pano" use:tooltip={["Pano"]} src={base + '/assets/img/logo.svg'} width="20" /> |
| 53 | + <img alt="Pano" use:tooltip={['Pano']} src={base + '/assets/img/logo.svg'} width="20" /> |
56 | 54 | {#if isAlpha} |
57 | 55 | <span |
58 | 56 | class="badge text-bg-info position-absolute top-100 start-50 translate-middle" |
|
77 | 75 | </a> |
78 | 76 | </div> |
79 | 77 |
|
80 | | - <div class="my-3"> |
81 | | - {#if $sidebarTabsState === 'website'} |
82 | | - <a type="button" href={UI_URL} class="btn btn-sm btn-secondary w-100" target="_blank"> |
83 | | - {$_('components.sidebar.show-website')} |
84 | | - <i class="fa-solid fa-arrow-up-right-from-square ms-2"></i> |
85 | | - </a> |
86 | | - {/if} |
| 78 | + <div class="my-2"> |
| 79 | + {#if $sidebarTabsState === 'website'} |
| 80 | + <a type="button" href={UI_URL} class="btn btn-sm btn-secondary w-100" target="_blank"> |
| 81 | + {$_('components.sidebar.show-website')} |
| 82 | + <i class="fa-solid fa-arrow-up-right-from-square ms-2"></i> |
| 83 | + </a> |
| 84 | + {/if} |
87 | 85 |
|
88 | | - {#if $sidebarTabsState === 'game'} |
89 | | - <div class="hstack gap-1"> |
90 | | - <button class="btn btn-sm btn-secondary w-100" type="button" on:click={showServersModal}> |
91 | | - {$_('components.sidebar.show-servers')} |
92 | | - </button> |
93 | | - <button |
94 | | - class="btn btn-sm btn-secondary" |
95 | | - data-bs-target="#connectServer" |
96 | | - data-bs-toggle="modal" |
97 | | - aria-label={$_('components.server-navigation-menu.connect-server')} |
98 | | - type="button" |
99 | | - use:tooltip={[$_('components.server-navigation-menu.connect-server')]}> |
100 | | - <i class="fa-solid fa-plus"></i> |
101 | | - </button> |
102 | | - </div> |
103 | | - {/if} |
| 86 | + {#if $sidebarTabsState === 'game'} |
| 87 | + <div class="hstack gap-1"> |
| 88 | + <button |
| 89 | + class="btn btn-sm btn-secondary w-100" |
| 90 | + type="button" |
| 91 | + on:click={showServersModal}> |
| 92 | + {$_('components.sidebar.show-servers')} |
| 93 | + </button> |
| 94 | + <button |
| 95 | + class="btn btn-sm btn-secondary" |
| 96 | + data-bs-target="#connectServer" |
| 97 | + data-bs-toggle="modal" |
| 98 | + aria-label={$_('components.server-navigation-menu.connect-server')} |
| 99 | + type="button" |
| 100 | + use:tooltip={[$_('components.server-navigation-menu.connect-server')]}> |
| 101 | + <i class="fa-solid fa-plus"></i> |
| 102 | + </button> |
| 103 | + </div> |
| 104 | + {/if} |
104 | 105 | </div> |
105 | 106 |
|
106 | 107 | <!-- Sidebar Tabs --> |
107 | | - <ul class="nav nav-pills nav-fill mb-2 gap-2" data-bs-theme="dark"> |
| 108 | + <ul class="nav nav-pills nav-fill mb-2 gap-2 p-2 rounded-5" data-bs-theme="dark"> |
108 | 109 | <li class="nav-item"> |
109 | 110 | <button |
110 | 111 | class="nav-link text-center" |
|
0 commit comments