mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-08 13:12:30 -05:00
fix: Convert timeline header styles to CSS classes
Moved inline styles for timeline headers in chapters and video editors to dedicated CSS classes for better maintainability and consistency.
This commit is contained in:
@@ -151,10 +151,8 @@ const App = () => {
|
||||
/>
|
||||
|
||||
{/* Timeline Header */}
|
||||
<div style={{ marginLeft: '1rem', marginTop: '-0.5rem' }}>
|
||||
<h2 style={{ fontSize: '1.125rem', fontWeight: 600, color: '#059669', margin: 0 }}>
|
||||
Add Chapters
|
||||
</h2>
|
||||
<div className="timeline-header-container">
|
||||
<h2 className="timeline-header-title">Add Chapters</h2>
|
||||
</div>
|
||||
|
||||
{/* Timeline Controls */}
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
#chapters-editor-root {
|
||||
.timeline-header-container {
|
||||
margin-left: 1rem;
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
|
||||
.timeline-header-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #059669;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.timeline-container-card {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
|
||||
@@ -310,10 +310,8 @@ const App = () => {
|
||||
/>
|
||||
|
||||
{/* Timeline Header */}
|
||||
<div style={{ marginLeft: '1rem', marginTop: '-0.5rem' }}>
|
||||
<h2 style={{ fontSize: '1.125rem', fontWeight: 600, color: '#2563eb', margin: 0 }}>
|
||||
Trim or Split
|
||||
</h2>
|
||||
<div className="timeline-header-container">
|
||||
<h2 className="timeline-header-title">Trim or Split</h2>
|
||||
</div>
|
||||
|
||||
{/* Timeline Controls */}
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
#video-editor-trim-root {
|
||||
.timeline-header-container {
|
||||
margin-left: 1rem;
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
|
||||
.timeline-header-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #2563eb;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.timeline-container-card {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
|
||||
Reference in New Issue
Block a user