mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Refactor appointment model and views to use a single date field; update tooltip and calendar display for improved functionality
This commit is contained in:
1 parent
88a40b356c
commit
86533981bc
8 files changed
+66
-76
No files matched your search
File renamed without changes.
@@ -23,8 +23,8 @@ table.cal td {
|
||||
background: #edf4ff;
|
||||
border: 1px solid #c5d8f3;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
line-height: 1.2;
|
||||
font-size: 0.9em; /* Matches Redmine calendar default text size */
|
||||
line-height: 1.3;
|
||||
overflow: visible !important; /* Allows tooltip popover to extend outside */
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
@@ -100,7 +100,7 @@ table.cal td {
|
||||
.appointment-hours {
|
||||
flex-shrink: 0;
|
||||
color: #444;
|
||||
font-size: 9px;
|
||||
font-size: 0.85em; /* Slightly smaller than main text to keep layout balanced */
|
||||
font-weight: bold;
|
||||
margin-left: auto;
|
||||
}
|
||||
@@ -108,11 +108,11 @@ table.cal td {
|
||||
/* Option B: Multi-line wrapping for details */
|
||||
.appointment-detail {
|
||||
color: #555;
|
||||
font-size: 9px;
|
||||
font-size: 0.9em; /* Matches calendar item body text */
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
margin-top: 1px;
|
||||
margin-top: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@@ -203,4 +203,47 @@ table.cal td {
|
||||
.appointment-block .tip .buttons {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.calendar-badge {
|
||||
display: inline-block;
|
||||
width: 38px;
|
||||
border: 1px solid #b8c0c8;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
margin-right: 8px;
|
||||
line-height: 1;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.calendar-badge .month {
|
||||
background-color: #c22b2b; /* Redmine primary red tone */
|
||||
color: #ffffff;
|
||||
font-size: 9px;
|
||||
font-weight: bold;
|
||||
padding: 3px 0 2px 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.calendar-badge .day {
|
||||
color: #333333;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
padding: 4px 0 3px 0;
|
||||
}
|
||||
|
||||
.appointment-title {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.appointment-dates {
|
||||
font-size: 70%;
|
||||
color: #666;
|
||||
margin-left: 8px;
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
}
|
||||
Reference in new issue
Block a user