Skip to content

Commit

Permalink
Merge pull request #7 from mesolitica/6-set-default-font-family-to-wi…
Browse files Browse the repository at this point in the history
…dget

6 set default font family to widget
  • Loading branch information
kamaroolkarim authored Aug 25, 2024
2 parents 712cc66 + 7df6584 commit 3247f29
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion build.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<script>
Nous.init({
color: '#1076EE',
fontFamily: "Arial, sans-serif",
zIndex: '1000',
webhookUrl: 'https://happytohelp-mesolitica-com-2927-rasa.nous.mesolitica.com/webhooks/rest_v2/webhook',
title: 'Microlink Bot',
Expand Down
2 changes: 1 addition & 1 deletion dist/nous-chat.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import Nous from './src/main.js'
Nous.init({
color: '#1076EE',
fontFamily: "Arial, sans-serif",
zIndex: '1000',
webhookUrl: 'https://happytohelp-mesolitica-com-2927-rasa.nous.mesolitica.com/webhooks/rest_v2/webhook',
title: 'Microlink Bot',
Expand Down
5 changes: 0 additions & 5 deletions src/components/NousChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ const props = defineProps({
type: String,
default: 'Padi Bot'
},
fontFamily: {
type: String,
default: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
},
firstMessage: {
type: String,
default: 'Chat with us'
Expand Down Expand Up @@ -99,7 +95,6 @@ onMounted(() => {
// Computed property for widget styles
const widgetStyle = computed(() => ({
'--nous-chat-color': props.color,
'--nous-chat-font-family': props.fontFamily,
'--nous-chat-z-index': props.zIndex,
'--nous-chat-width': '364px',
'--nous-chat-height': '620px'
Expand Down
5 changes: 4 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;


font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, Arial, sans-serif;
font-size: 16px;

/* Add any custom styles for your widget here */
.no-scrollbar {
scrollbar-width: none; /* Firefox */
Expand Down

0 comments on commit 3247f29

Please sign in to comment.