Skip to content

Commit eab3bfe

Browse files
authored
Merge pull request #48 from flexcodelabs/develop
🛠️ fix: embedded datepicker styles on chat css
2 parents 4ad5aa2 + ee1704e commit eab3bfe

File tree

6 files changed

+41
-40
lines changed

6 files changed

+41
-40
lines changed

example/vanilla-js/script.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/vanilla-js/style.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/chat/chat.css

+37
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,40 @@
371371
}
372372
}
373373
/*# sourceMappingURL=chat.css.map */
374+
375+
/* Date Picker Styles */
376+
.datepicker-toggle {
377+
display: inline-block;
378+
position: relative;
379+
width: 20px;
380+
height: 21px;
381+
margin: 0 0.3rem;
382+
}
383+
.datepicker-toggle-button {
384+
position: absolute;
385+
left: 0;
386+
top: 0;
387+
width: 100%;
388+
height: 100%;
389+
}
390+
391+
.datepicker-input {
392+
position: absolute;
393+
left: 0;
394+
top: 0;
395+
width: 100%;
396+
height: 100%;
397+
opacity: 0;
398+
cursor: pointer;
399+
box-sizing: border-box;
400+
}
401+
.datepicker-input::-webkit-calendar-picker-indicator {
402+
position: absolute;
403+
left: 0;
404+
top: 0;
405+
width: 100%;
406+
height: 100%;
407+
margin: 0;
408+
padding: 0;
409+
cursor: pointer;
410+
}

src/chat/chat.sass

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
max-height: calc( 100% - 92px - .5rem )
7373
width: var(--sarufi-chatbox-width)
7474
max-width: 100%
75-
bottom: calc( 40px + .2.2rem )
75+
bottom: calc( 40px + .2rem )
7676

7777
.sarufi-backdrop
7878
height: calc( var(--sarufi-chatbox-height) - 95px - .5rem )

src/chat/message-actions/date-picker.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { CSSProperties, useState } from "react";
22
import { Calendar } from "../../assets/icons";
3-
import "./datepicker.css";
43

54
interface DatePickerProps {
65
selectedDate?: Date;

src/chat/message-actions/datepicker.css

-35
This file was deleted.

0 commit comments

Comments
 (0)