Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - can only use one ion-content #68

Open
Tommertom opened this issue Mar 8, 2023 · 2 comments
Open

Bug - can only use one ion-content #68

Tommertom opened this issue Mar 8, 2023 · 2 comments

Comments

@Tommertom
Copy link
Owner

When having a page with ion-content and doing a modal with another ion-content, the view will be totally messed up.

So need to look into ion-content - is there something like framework overlay needed or so?

If that is the case, a custom IonContent.svelte will be needed....

@Tommertom
Copy link
Owner Author

Tommertom commented Mar 8, 2023

For now workaround could be like this (wrapping in a scrollable div):

<div class="scrollable">
	{#each transactions as transaction}
		<ion-item>
			<ion-label>
				<h2>{transTypeMap[transaction.entryType]}</h2>
				<h3>
					Tokens {transaction.usage.prompt_tokens} prompt {transaction.usage.completion_tokens} response
					- total {transaction.usage.total_tokens}
				</h3>
				<p>{transaction.content}</p>
			</ion-label>
		</ion-item>
	{/each}
</div>

<style>
	.scrollable {
		overflow: auto;
		max-height: 100vh;
	}
</style>

@Tommertom
Copy link
Owner Author

Probably solved when wrapping the main pagein in div with ion-page

Demo for the rebuild has multiple ion-contents and that seems to work
#93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant