style: enhance compose media button with dedicated styling, hover effects, and an increased icon size.
This commit is contained in:
+17
-2
@@ -340,7 +340,8 @@ a.btn-primary:visited {
|
|||||||
|
|
||||||
.video-embed-container {
|
.video-embed-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 56.25%; /* 16:9 aspect ratio */
|
padding-bottom: 56.25%;
|
||||||
|
/* 16:9 aspect ratio */
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
@@ -503,6 +504,20 @@ a.btn-primary:visited {
|
|||||||
.compose-media-button {
|
.compose-media-button {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: var(--radius-full);
|
||||||
|
color: var(--foreground-secondary);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.compose-media-button:hover {
|
||||||
|
background: var(--background-tertiary);
|
||||||
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.compose-media-input {
|
.compose-media-input {
|
||||||
@@ -1564,4 +1579,4 @@ a.btn-primary:visited {
|
|||||||
.thread-line {
|
.thread-line {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
border-left: 1px solid var(--border);
|
border-left: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
@@ -186,8 +186,8 @@ export function Compose({ onPost, replyingTo, onCancelReply, placeholder = "What
|
|||||||
{remaining}
|
{remaining}
|
||||||
</span>
|
</span>
|
||||||
<div className="compose-actions">
|
<div className="compose-actions">
|
||||||
<label className="btn btn-ghost btn-sm compose-media-button" title="Add media">
|
<label className="compose-media-button" title="Add media">
|
||||||
{isUploading ? '...' : <ImageIcon size={18} />}
|
{isUploading ? '...' : <ImageIcon size={20} />}
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user