Skip to content

Commit

Permalink
Add animation
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Nov 25, 2021
1 parent 4da1510 commit b22f0ab
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/SearchBlock/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ export const SearchBlockSchema = ({ formData = {} }) => ({
{
id: 'general',
title: 'General settings',
fields: ['headline', 'subheadline', 'promptQueries', 'enableNLP'],
fields: [
'headline',
'subheadline',
'promptQueries',
'promptQueryInterval',
'enableNLP',
],
},
...(formData?.enableNLP
? [
Expand Down Expand Up @@ -58,6 +64,13 @@ export const SearchBlockSchema = ({ formData = {} }) => ({
configPath: 'promptQueries',
widget: 'textarea',
},
promptQueryInterval: {
title: 'Prompt interval',
description: 'Interval when to change the prompt query',
configPath: 'promptQueryInterval',
type: 'number',
default: 10000,
},

use_qa_dp: {
title: 'Use DensePassageRetrieval for QA?',
Expand Down
19 changes: 19 additions & 0 deletions src/SearchBlock/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -1564,3 +1564,22 @@ p.highlight-description {
font-weight: bold;
}
}

@keyframes demoQuestion {
from {
opacity: 0;
}

to {
opacity: 1;
}
}

p.demo-question {
a.ui.button {
padding: 0.1em;
animation-duration: 0.8s;
animation-name: demoQuestion;
font-size: small;
}
}

0 comments on commit b22f0ab

Please sign in to comment.