Fixed bug for displaying sign ups for shifts
This commit is contained in:
@@ -109,6 +109,10 @@
|
||||
|
||||
.shift-actions {
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.no-shifts {
|
||||
@@ -118,14 +122,67 @@
|
||||
grid-column: 1 / -1; /* Span all columns */
|
||||
}
|
||||
|
||||
/* Tablet: 2 columns */
|
||||
@media (max-width: 1024px) and (min-width: 769px) {
|
||||
.shifts-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
/* Calendar dropdown styles */
|
||||
.calendar-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Mobile: 1 column */
|
||||
.calendar-toggle {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.calendar-options {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
min-width: 180px;
|
||||
background: white;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
||||
z-index: 1000;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.calendar-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 15px;
|
||||
text-decoration: none;
|
||||
color: var(--dark-color);
|
||||
transition: var(--transition);
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.calendar-option:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.calendar-option:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.calendar-option img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
/* Ensure dropdowns appear above other elements */
|
||||
.shift-card {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Update signup actions for My Shifts section */
|
||||
.signup-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Mobile adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.shifts-container {
|
||||
padding: 15px;
|
||||
@@ -142,8 +199,30 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.shift-card {
|
||||
padding: 15px;
|
||||
.signup-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.shift-actions {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.shift-actions .btn,
|
||||
.calendar-dropdown {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.calendar-toggle {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.calendar-options {
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.my-signups {
|
||||
@@ -158,4 +237,13 @@
|
||||
.filter-group {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* Prevent dropdown from being cut off */
|
||||
.shifts-grid {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.shift-card {
|
||||
overflow: visible;
|
||||
}
|
||||
Reference in New Issue
Block a user