Change position of options/action menu
This commit is contained in:
parent
ef7ebb0c99
commit
f0b6b01f99
15
src/app.scss
15
src/app.scss
|
@ -73,7 +73,7 @@ html {
|
||||||
--chatInputPaddingRight: 20px;
|
--chatInputPaddingRight: 20px;
|
||||||
--chatInputPaddingLeft: 20px;
|
--chatInputPaddingLeft: 20px;
|
||||||
}
|
}
|
||||||
.main-menu .gpt-logo {
|
.main-menu .menu-nav-bar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.main-menu .level-right {
|
.main-menu .level-right {
|
||||||
|
@ -445,12 +445,23 @@ aside.menu.main-menu .menu-expanse {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-menu .gpt-logo .icon {
|
.main-menu .menu-nav-bar .gpt-logo .icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-menu .menu-nav-bar .chat-option-menu {
|
||||||
|
padding-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 900px) {
|
||||||
|
.main-menu .dropdown.is-right .dropdown-menu {
|
||||||
|
right:auto;
|
||||||
|
left:0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.message-body {
|
.message-body {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
// import { params } from 'svelte-spa-router'
|
import { params } from 'svelte-spa-router'
|
||||||
import { pinMainMenu } from './Storage.svelte'
|
import { pinMainMenu } from './Storage.svelte'
|
||||||
import logo from '../assets/logo.svg'
|
import logo from '../assets/logo.svg'
|
||||||
// import ChatOptionMenu from './ChatOptionMenu.svelte'
|
import ChatOptionMenu from './ChatOptionMenu.svelte'
|
||||||
import Fa from 'svelte-fa/src/fa.svelte'
|
import Fa from 'svelte-fa/src/fa.svelte'
|
||||||
import { faBars, faXmark } from '@fortawesome/free-solid-svg-icons/index'
|
import { faBars, faXmark } from '@fortawesome/free-solid-svg-icons/index'
|
||||||
|
|
||||||
// $: activeChatId = $params && $params.chatId ? parseInt($params.chatId) : undefined
|
$: activeChatId = $params && $params.chatId ? parseInt($params.chatId) : undefined
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav class="navbar is-fixed-top" aria-label="main navigation">
|
<nav class="navbar is-fixed-top" aria-label="main navigation">
|
||||||
|
@ -31,8 +31,8 @@
|
||||||
<img src={logo} alt="ChatGPT-web" width="24" height="24" />
|
<img src={logo} alt="ChatGPT-web" width="24" height="24" />
|
||||||
<p class="ml-2 is-size-6 has-text-weight-bold">ChatGPT-web</p>
|
<p class="ml-2 is-size-6 has-text-weight-bold">ChatGPT-web</p>
|
||||||
</a>
|
</a>
|
||||||
<!-- <div class="chat-option-menu navbar-item is-pulled-right">
|
<div class="chat-option-menu navbar-item is-pulled-right">
|
||||||
<ChatOptionMenu bind:chatId={activeChatId} />
|
<ChatOptionMenu bind:chatId={activeChatId} />
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -16,11 +16,14 @@
|
||||||
|
|
||||||
<aside class="menu main-menu" class:pinned={$pinMainMenu} use:clickOutside={() => { $pinMainMenu = false }}>
|
<aside class="menu main-menu" class:pinned={$pinMainMenu} use:clickOutside={() => { $pinMainMenu = false }}>
|
||||||
<div class="menu-expanse">
|
<div class="menu-expanse">
|
||||||
<div class="gpt-logo navbar-brand">
|
<div class="navbar-brand menu-nav-bar">
|
||||||
<a class="navbar-item" href={'#/'}>
|
<a class="navbar-item gpt-logo" href={'#/'}>
|
||||||
<img src={logo} alt="ChatGPT-web" width="24" height="24" />
|
<img src={logo} alt="ChatGPT-web" width="24" height="24" />
|
||||||
<p class="ml-2 is-size-5 has-text-weight-bold">ChatGPT-web</p>
|
<p class="ml-2 is-size-5 has-text-weight-bold">ChatGPT-web</p>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="chat-option-menu navbar-item is-pulled-right">
|
||||||
|
<ChatOptionMenu bind:chatId={activeChatId} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="menu-list menu-expansion-list">
|
<ul class="menu-list menu-expansion-list">
|
||||||
{#if sortedChats.length === 0}
|
{#if sortedChats.length === 0}
|
||||||
|
@ -46,9 +49,6 @@
|
||||||
><span class="greyscale mr-2"><Fa icon={faSquarePlus} /></span> New chat</a
|
><span class="greyscale mr-2"><Fa icon={faSquarePlus} /></span> New chat</a
|
||||||
></div>
|
></div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="level-item">
|
|
||||||
<ChatOptionMenu bind:chatId={activeChatId} style="is-right is-up" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue