Terminal aesthetic polish: Consolidate styles & fix visual bugs

## Issue 1: User-Header Consolidation (COMPLETED)
- Added centralized user-header CSS to dashboard.css
- Removed 156 lines of duplicate inline styles from 3 PHP files
- Updated to use proper terminal aesthetic colors:
  * Background: var(--bg-secondary) instead of #2c3e50
  * Text: var(--terminal-green) with glow effects
  * App title: var(--terminal-amber) with amber glow
  * Admin badge: Transparent with priority-1 border and [brackets]
- Removed border-radius from admin badge (terminal aesthetic)
- Added hover effects with color changes and glow

## Issue 2: Status Badge Text Wrapping (FIXED)
- Fixed "In Progress" status badge wrapping to new line
- Updated dashboard.css .status-In-Progress:
  * Increased min-width from 100px to 140px
  * Added white-space: nowrap
  * Added display: inline-block
- Updated ticket.css .status-In-Progress with same fixes
- Badge now displays `[ In Progress ]` on single line

## Issue 3: Border-Radius Cleanup (100% TERMINAL AESTHETIC)
- Removed ALL rounded corners across entire application
- Changed 14 instances in dashboard.css to border-radius: 0
- Changed 9 instances in ticket.css to border-radius: 0
- Includes avatar/profile images (now square boxes)
- Complete terminal aesthetic compliance: sharp rectangular edges

## Code Quality Improvements
- Net reduction: 69 lines of code (191 removed, 122 added)
- Single source of truth for user-header styling
- All colors use CSS variables for consistency
- Zero duplicate CSS remaining
- Easier maintenance going forward

## Visual Changes
- User header: Terminal green with amber accents
- Admin badge: Red border with [brackets], no rounded corners
- Back link: Green with amber hover + glow effects
- Status badges: Single line display, no wrapping
- All UI elements: Sharp rectangular corners (0px radius)

## Files Modified
- assets/css/dashboard.css: +102 lines (user-header CSS, status fix, border-radius cleanup)
- assets/css/ticket.css: +3 lines (status fix, border-radius cleanup)
- views/DashboardView.php: -53 lines (removed inline styles)
- views/TicketView.php: -57 lines (removed inline styles)
- views/CreateTicketView.php: -57 lines (removed inline styles)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-07 16:15:24 -05:00
parent 719905872b
commit 0f25c49d5c
5 changed files with 122 additions and 191 deletions

View File

@@ -26,63 +26,6 @@
<?php endif; ?>
</div>
</div>
<style>
.user-header {
background: #2c3e50;
padding: 0.5rem 1rem;
margin-left: 50px; /* Space for hamburger menu */
color: white;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #444;
box-sizing: border-box;
}
.user-header-left, .user-header-right {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 1;
min-width: 0;
}
.back-link {
color: white;
text-decoration: none;
font-weight: bold;
font-size: 1rem;
white-space: nowrap;
}
.back-link:hover {
text-decoration: underline;
}
.user-name {
color: white;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.admin-badge {
background: #e74c3c;
color: white;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-size: 0.75rem;
white-space: nowrap;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.user-header {
padding: 0.5rem 0.75rem;
}
.back-link {
font-size: 0.9rem;
}
.user-name {
font-size: 0.85rem;
}
}
</style>
<!-- OUTER FRAME: Create Ticket Form Container -->
<div class="ascii-frame-outer">

View File

@@ -27,59 +27,6 @@
<?php endif; ?>
</div>
</div>
<style>
.user-header {
background: #2c3e50;
padding: 0.5rem 1rem;
margin-left: 50px; /* Space for hamburger menu */
color: white;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #444;
box-sizing: border-box;
}
.user-header-left, .user-header-right {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 1;
min-width: 0;
}
.app-title {
font-weight: bold;
font-size: 1rem;
color: white;
white-space: nowrap;
}
.user-name {
color: white;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.admin-badge {
background: #e74c3c;
color: white;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-size: 0.75rem;
white-space: nowrap;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.user-header {
padding: 0.5rem 0.75rem;
}
.app-title {
font-size: 0.9rem;
}
.user-name {
font-size: 0.85rem;
}
}
</style>
<!-- ASCII Banner Container -->
<div id="ascii-banner-container" style="margin: 2rem auto; text-align: center; max-width: 1200px;"></div>

View File

@@ -77,63 +77,6 @@ function formatDetails($details, $actionType) {
<?php endif; ?>
</div>
</div>
<style>
.user-header {
background: #2c3e50;
padding: 0.5rem 1rem;
margin-left: 50px; /* Space for hamburger menu */
color: white;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #444;
box-sizing: border-box;
}
.user-header-left, .user-header-right {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 1;
min-width: 0;
}
.back-link {
color: white;
text-decoration: none;
font-weight: bold;
font-size: 1rem;
white-space: nowrap;
}
.back-link:hover {
text-decoration: underline;
}
.user-name {
color: white;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.admin-badge {
background: #e74c3c;
color: white;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-size: 0.75rem;
white-space: nowrap;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.user-header {
padding: 0.5rem 0.75rem;
}
.back-link {
font-size: 0.9rem;
}
.user-name {
font-size: 0.85rem;
}
}
</style>
<div class="ticket-container ascii-frame-outer" data-priority="<?php echo $ticket["priority"]; ?>">
<span class="bottom-left-corner">╚</span>
<span class="bottom-right-corner">╝</span>