Skip to content

Commit

Permalink
Merge pull request #83 from AWS-Q/32teeth/fix/scrollbar
Browse files Browse the repository at this point in the history
fix: #81 scrollbar
  • Loading branch information
ege0zcan authored Jul 23, 2024
2 parents 4dc4e63 + e628f91 commit eaa7983
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
import { defaultFollowUps } from './samples/sample-data';
import { Commands } from './commands';
import { MynahUITabStoreTab, QuickActionCommandGroup } from '../../dist/static';
export const WelcomeMessage = `Hi, this is \`MynahUI\` and it is a **data and event driven** web based chat interface library and it is independent from any framework like react or vue etc.
In this example web app which uses mynah-ui as its renderer, we're simulating its capabilities with some static content with an IDE look&feel.
export const WelcomeMessage = `Hi, this is \`MynahUI\` and it is a **data and event driven** web based chat interface library and it is independent from any framework like react or vue etc.
In this example web app which uses mynah-ui as its renderer, we're simulating its capabilities with some static content with an IDE look&feel.
*To see more examples about the possible content types, interactions or various component types, you can type \`/\` to open the quick actions list panel.*`;

Expand All @@ -31,7 +31,7 @@ export const QuickActionCommands:QuickActionCommandGroup[] = [
command: Commands.SHOW_STICKY_CARD,
description: 'You can stick a ChatItem card on top of the input field which will stay there independently from the conversation block. It might be handy to give some info to the user.',
},

],
},
{
Expand Down
8 changes: 8 additions & 0 deletions src/styles/_scrollbars.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* {
scrollbar-gutter: unset;
scrollbar-color: color-mix(
in hsl,
var(--mynah-color-text-default),
hsl(0, 100%, 100%) 90%)
transparent;
}
1 change: 1 addition & 0 deletions src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
@import 'animations';
@import 'dark';
@import 'favicons';
@import 'scrollbars';
@import './components/main-container';

0 comments on commit eaa7983

Please sign in to comment.