Skip to content

Commit db5b524

Browse files
authored
fix overlflow issues + allow text selection (#543)
1 parent d6d91a7 commit db5b524

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

dist/atomic-calendar-revive.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atomic-calendar-revive",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"editor_version": "1.7.1",
55
"description": "Calendar Card for Home Assistant",
66
"main": "atomic-calendar-revive.js",

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ class AtomicCalendarRevive extends LitElement {
398398
padding: 0px 5px 0 5px;
399399
color: ${this._config.descColor};
400400
font-size: ${this._config.descSize}%;
401+
overflow-wrap: anywhere;
402+
user-select: text;
401403
}
402404
.hidden-events {
403405
color: var(--primary-text-color);
@@ -426,10 +428,12 @@ class AtomicCalendarRevive extends LitElement {
426428
text-align: right;
427429
display: inline-block;
428430
vertical-align: top;
431+
user-select: text;
429432
}
430433
431434
.event-title {
432435
font-size: ${this._config.eventTitleSize}%;
436+
user-select: text;
433437
}
434438
435439
.event-titleRunning {
@@ -448,6 +452,7 @@ class AtomicCalendarRevive extends LitElement {
448452
text-decoration: none;
449453
color: ${this._config.locationLinkColor};
450454
font-size: ${this._config.locationTextSize}%;
455+
user-select: text;
451456
}
452457
453458
.event-circle {

src/style.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const style = css`
7979
padding: 0px 5px 0 5px;
8080
color: ${this._config.descColor};
8181
font-size: ${this._config.descSize}%;
82+
overflow-wrap: anywhere;
83+
user-select: text;
8284
}
8385
8486
.hoursHTML {
@@ -104,10 +106,12 @@ const style = css`
104106
text-align: right;
105107
display: inline-block;
106108
vertical-align: top;
109+
user-select: text;
107110
}
108111
109112
.event-title {
110113
font-size: ${this._config.eventTitleSize}%;
114+
user-select: text;
111115
}
112116
113117
.event-location-icon {

0 commit comments

Comments
 (0)