Jonas Wiesli commited on
Commit
715d8c6
1 Parent(s): 573f504

added small dot for speech bubble

Browse files
Files changed (2) hide show
  1. app.py +12 -7
  2. style.css +25 -2
app.py CHANGED
@@ -9,13 +9,18 @@ theme = gr.themes.Monochrome(
9
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap);.gradio-container{" \
10
  "background-color:#cda678;font-family:Silkscreen;position:relative}.secondary.svelte-58yet2," \
11
  ".tabitem{background-color:#002366}#component-1{min-height:75vh}#component-4{" \
12
- "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{border:1px solid #fff}#component-9{" \
13
- "min-height:70vh;max-height:70vh}#component-10,#component-11,#component-18,#component-19,#component-26," \
14
- "#component-27,#component-34,#component-35,#component-42,#component-43,.wrap.svelte-a99nd8{" \
15
- "background-color:#aaa}.message.svelte-a99nd8.svelte-a99nd8{padding:15px}.bot.svelte-a99nd8.svelte-a99nd8{" \
16
- "padding-left:15px}textarea{background-color:#fff}#component-48,#component-51{" \
17
- "position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(" \
18
- "-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
 
 
 
 
 
19
  "#002366}#component-49{position:initial}#component-50,#component-62{" \
20
  "position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px}"
21
 
 
9
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap);.gradio-container{" \
10
  "background-color:#cda678;font-family:Silkscreen;position:relative}.secondary.svelte-58yet2," \
11
  ".tabitem{background-color:#002366}#component-1{min-height:75vh}#component-4{" \
12
+ "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{border:1px solid #fff}#component-17,#component-25," \
13
+ "#component-33,#component-41,#component-9{min-height:70vh;max-height:70vh}#component-10,#component-11," \
14
+ "#component-18,#component-19,#component-26,#component-27,#component-34,#component-35,#component-42," \
15
+ "#component-43{background-color:#aaa}.message.svelte-a99nd8.svelte-a99nd8{" \
16
+ "padding:15px;position:relative}.user.svelte-a99nd8.svelte-a99nd8{" \
17
+ "margin-right:10px}.bot.svelte-a99nd8.svelte-a99nd8{" \
18
+ "padding-left:15px;margin-left:10px}.bot.svelte-a99nd8.svelte-a99nd8:before," \
19
+ ".user.svelte-a99nd8.svelte-a99nd8:after{" \
20
+ "content:"";width:10px;height:10px;position:absolute;bottom:0;background-color:#fff}.bot.svelte-a99nd8.svelte" \
21
+ "-a99nd8:before{left:-10px}.user.svelte-a99nd8.svelte-a99nd8:after{right:-10px}textarea{" \
22
+ "background-color:#fff}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
23
+ "-50%) translateY(-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
24
  "#002366}#component-49{position:initial}#component-50,#component-62{" \
25
  "position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px}"
26
 
style.css CHANGED
@@ -23,7 +23,7 @@
23
  border: 1px solid #fff;
24
  }
25
 
26
- #component-9 {
27
  min-height: 70vh;
28
  max-height: 70vh;
29
  }
@@ -33,16 +33,39 @@
33
  }
34
 
35
  #component-10, #component-11, #component-18, #component-19, #component-26, #component-27, #component-34, #component-35,
36
- #component-42, #component-43, .wrap.svelte-a99nd8 {
37
  background-color: #aaa;
38
  }
39
 
40
  .message.svelte-a99nd8.svelte-a99nd8 {
41
  padding: 15px;
 
 
 
 
 
42
  }
43
 
44
  .bot.svelte-a99nd8.svelte-a99nd8 {
45
  padding-left: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
 
48
  textarea {
 
23
  border: 1px solid #fff;
24
  }
25
 
26
+ #component-9, #component-17, #component-25, #component-33, #component-41 {
27
  min-height: 70vh;
28
  max-height: 70vh;
29
  }
 
33
  }
34
 
35
  #component-10, #component-11, #component-18, #component-19, #component-26, #component-27, #component-34, #component-35,
36
+ #component-42, #component-43 {
37
  background-color: #aaa;
38
  }
39
 
40
  .message.svelte-a99nd8.svelte-a99nd8 {
41
  padding: 15px;
42
+ position: relative;
43
+ }
44
+
45
+ .user.svelte-a99nd8.svelte-a99nd8 {
46
+ margin-right: 10px;
47
  }
48
 
49
  .bot.svelte-a99nd8.svelte-a99nd8 {
50
  padding-left: 15px;
51
+ margin-left: 10px;
52
+ }
53
+
54
+ .bot.svelte-a99nd8.svelte-a99nd8:before, .user.svelte-a99nd8.svelte-a99nd8:after {
55
+ content: "";
56
+ width: 10px;
57
+ height: 10px;
58
+ position: absolute;
59
+ bottom: 0;
60
+ background-color: #fff;
61
+ }
62
+
63
+ .bot.svelte-a99nd8.svelte-a99nd8:before {
64
+ left: -10px;
65
+ }
66
+
67
+ .user.svelte-a99nd8.svelte-a99nd8:after {
68
+ right: -10px;
69
  }
70
 
71
  textarea {