update
This commit is contained in:
parent
48e278b1c9
commit
fbaf93e426
@ -299,7 +299,7 @@ const Content = () => {
|
||||
{selected && !isLoading && (
|
||||
<>
|
||||
{/* Header */}
|
||||
<div className="bg-white border-b border-gray-200 p-4">
|
||||
<div className="hidden bg-white border-b border-gray-200 p-4">
|
||||
<div className="text-2xl font-bold text-gray-800">{selected.subjectName}</div>
|
||||
<div className="text-2xl/7 mt-2 text-gray-800 line-">
|
||||
Тема: {selected.topic.sequence}. {selected.topic.title}
|
||||
@ -315,31 +315,6 @@ const Content = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Quick Actions */}
|
||||
<div className="bg-white border-b border-gray-200 p-4">
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<button
|
||||
onClick={handleCopyContent}
|
||||
className="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Копирай съдържанието
|
||||
</button>
|
||||
<button
|
||||
onClick={handleDeleteAll}
|
||||
className="bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Изтрий всичко
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={handleUndoInitial}
|
||||
className="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Възстанови оригинал
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Content Editor */}
|
||||
<div className="flex-1 bg-white p-4 flex flex-col">
|
||||
<label htmlFor="content" className="block text-sm font-medium text-gray-700 mb-2">
|
||||
@ -367,7 +342,29 @@ const Content = () => {
|
||||
</div>
|
||||
|
||||
{/* Bottom Actions */}
|
||||
<div className="bg-white border-t border-gray-200 p-4">
|
||||
<div className="bg-white border-t border-gray-200 p-4 flex justify-between">
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<button
|
||||
onClick={handleCopyContent}
|
||||
className="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Копирай съдържанието
|
||||
</button>
|
||||
<button
|
||||
onClick={handleDeleteAll}
|
||||
className="bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Изтрий всичко
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={handleUndoInitial}
|
||||
className="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors"
|
||||
>
|
||||
Възстанови оригинал
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{isSavingLoading && <span className="flex justify-end mr-8">Saving...</span>}
|
||||
<div className={`flex justify-end gap-3 ${isSavingLoading ? "invisible" : ""}`}>
|
||||
<button
|
||||
|
||||
Loading…
Reference in New Issue
Block a user