Hansimov commited on
Commit
171f6df
1 Parent(s): ca2abb2

:zap: [Enhance] Finetune margin and padding of messagers-container for screenshot

Browse files
Files changed (3) hide show
  1. components/buttons_binder.js +1 -1
  2. css/default.css +1 -1
  3. index.html +5 -5
components/buttons_binder.js CHANGED
@@ -173,7 +173,7 @@ class ScreenshotButtonBinder {
173
  const button = $("#screenshot-button");
174
  button.attr("title", "Take screenshot for whole chat");
175
  button.click(() => {
176
- let screenshot_padding = 20;
177
  // default padding is 0.75em (12px)
178
  // p-1 (4px)(0.25em); p-2 (8px)(0.5em); p-3 (16px)(1em);
179
  let container_padding = 12;
 
173
  const button = $("#screenshot-button");
174
  button.attr("title", "Take screenshot for whole chat");
175
  button.click(() => {
176
+ let screenshot_padding = 0;
177
  // default padding is 0.75em (12px)
178
  // p-1 (4px)(0.25em); p-2 (8px)(0.5em); p-3 (16px)(1em);
179
  let container_padding = 12;
css/default.css CHANGED
@@ -111,7 +111,7 @@ body {
111
  }
112
 
113
  #messagers-container {
114
- padding-top: 73px;
115
  }
116
 
117
  #scroll-to-bottom-button {
 
111
  }
112
 
113
  #messagers-container {
114
+ margin-top: 68px;
115
  }
116
 
117
  #scroll-to-bottom-button {
index.html CHANGED
@@ -39,15 +39,15 @@
39
  </div>
40
  <div class="my-2 row no-gutters justify-content-end">
41
  <div class="col">
42
- <button id="clear-chat-history-button" class="btn">
43
- <i class="fa fa-trash"></i>
44
- </button>
45
- </div>
46
  <div class="col">
47
  <button id="screenshot-button" class="btn">
48
  <i class="fa fa-camera"></i>
49
  </button>
50
- </div>
51
  </div>
52
  </div>
53
  <div id="top-toolbar" class="container fixed-top mt-2 pb-2">
 
39
  </div>
40
  <div class="my-2 row no-gutters justify-content-end">
41
  <div class="col">
42
+ <button id="clear-chat-history-button" class="btn">
43
+ <i class="fa fa-trash"></i>
44
+ </button>
45
+ </div>
46
  <div class="col">
47
  <button id="screenshot-button" class="btn">
48
  <i class="fa fa-camera"></i>
49
  </button>
50
+ </div>
51
  </div>
52
  </div>
53
  <div id="top-toolbar" class="container fixed-top mt-2 pb-2">