From e7f7fad577d6a37660a161964c70c0d93062ff2e Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 19 Jan 2024 14:40:52 +0300 Subject: Add list panel implementation --- gn2/wqflask/static/new/css/llm.css | 11 +-- gn2/wqflask/templates/gnqa_answer.html | 141 ++++++++++++++++++++++++++++----- 2 files changed, 127 insertions(+), 25 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/static/new/css/llm.css b/gn2/wqflask/static/new/css/llm.css index bb50fdac..5a666a3d 100644 --- a/gn2/wqflask/static/new/css/llm.css +++ b/gn2/wqflask/static/new/css/llm.css @@ -23,14 +23,14 @@ #gnqa_ref { - height: 90vh; + min-height: 100vh; overflow: hidden; - overflow-y: scroll; + overflow-y:auto; + /* overflow-y: scroll; */ } #gnqa_ref_item{ - border-bottom: 1px solid lightgrey; padding:12px; } @@ -39,7 +39,6 @@ font-size: 24px; font-family: serif; color: #3071a9; - text-transform: capitalize; text-decoration: underline; } @@ -48,12 +47,10 @@ } - #gnqa_answer { - text-transform: capitalize; - } #gnqa_answer::first-letter{ font-weight: bold; + text-transform: uppercase; } diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 597ed78b..01c94d35 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -46,9 +46,44 @@ } +} +.panel-heading { + padding: 0; + border:0; +} +.panel-title>a, .panel-title>a:active{ + display:block; + padding:15px; + color:#555; + font-weight:bold; +text-decoration:none; +border: none; + +outline: none; +} + +.panel-heading a:before { + font-family: 'Glyphicons Halflings'; + content: "\e114"; + float: right; + transition: all 0.5s; +} +.panel-heading.active a:before { + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + transform: rotate(180deg); +} + + + + -
+ + + + +
@@ -58,31 +93,91 @@

{{query}}

-
-

{{answer}}

+

+

{{answer}}

- -
-

References

+
+

References

{% if references %}
    - {% for reference in references %} -
  • -

    {{ reference.bibInfo }}

    -

    {{reference.comboTxt}}

    - -
    - - - - -
    -
  • + + {% for reference in references %} + +
  • +
    + +
    + {% if loop.first %} + + + + +
    +
    + +

    {{reference.comboTxt}}

    +
    + + + + +
    + + +
    +
    + + + + {% else %} + + + + + + + + +
    +
    + +

    {{reference.comboTxt}}

    +
    + + + + +
    + + +
    +
    + + {% endif %} + +
    + +
    +
  • {% endfor %}
{% else %} @@ -92,9 +187,19 @@
+ + + +