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 */}
|
{/* Timeline Header */}
|
||||||
<div style={{ marginLeft: '1rem', marginTop: '-0.5rem' }}>
|
<div className="timeline-header-container">
|
||||||
<h2 style={{ fontSize: '1.125rem', fontWeight: 600, color: '#059669', margin: 0 }}>
|
<h2 className="timeline-header-title">Add Chapters</h2>
|
||||||
Add Chapters
|
|
||||||
</h2>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Timeline Controls */}
|
{/* Timeline Controls */}
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
#chapters-editor-root {
|
#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 {
|
.timeline-container-card {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
|||||||
@@ -309,12 +309,10 @@ const App = () => {
|
|||||||
canRedo={historyPosition < history.length - 1}
|
canRedo={historyPosition < history.length - 1}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Timeline Header */}
|
{/* Timeline Header */}
|
||||||
<div style={{ marginLeft: '1rem', marginTop: '-0.5rem' }}>
|
<div className="timeline-header-container">
|
||||||
<h2 style={{ fontSize: '1.125rem', fontWeight: 600, color: '#2563eb', margin: 0 }}>
|
<h2 className="timeline-header-title">Trim or Split</h2>
|
||||||
Trim or Split
|
</div>
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Timeline Controls */}
|
{/* Timeline Controls */}
|
||||||
<TimelineControls
|
<TimelineControls
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
#video-editor-trim-root {
|
#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 {
|
.timeline-container-card {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user