|
56 | 56 | align-items: center;
|
57 | 57 | }
|
58 | 58 |
|
| 59 | +/* Message Action Buttons Container */ |
59 | 60 | .message-action-buttons {
|
60 |
| - position: absolute !important; |
61 |
| - bottom: 8px !important; |
62 |
| - right: 8px !important; |
| 61 | + position: absolute; |
| 62 | + bottom: 8px; |
| 63 | + right: 8px; |
63 | 64 | display: flex;
|
| 65 | + border-radius: 4px; |
| 66 | + overflow: hidden; /* Ensures inner buttons don't break the rounded corners */ |
64 | 67 | }
|
65 | 68 |
|
66 |
| -.message-action-buttons button { |
| 69 | +/* Common styles for action buttons */ |
| 70 | +.message-action-buttons button, |
| 71 | +.message-start-editing-button { |
67 | 72 | cursor: pointer;
|
68 | 73 | opacity: 0;
|
69 | 74 | transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
70 | 75 | background-color: var(--jp-layout-color3);
|
71 | 76 | border: none;
|
72 |
| - padding: 0px; |
73 |
| - border-radius: 0; |
74 | 77 | display: flex;
|
75 | 78 | align-items: center;
|
76 | 79 | justify-content: center;
|
77 |
| - color: var(--grey-900) !important; |
78 |
| - width: 28px; |
79 |
| - height: 28px; |
80 |
| - position: relative; |
81 |
| -} |
82 |
| - |
83 |
| -.message-action-buttons button svg { |
84 | 80 | color: var(--jp-content-font-color1);
|
85 | 81 | }
|
86 | 82 |
|
87 |
| -.message-action-buttons button:first-child { |
88 |
| - border-top-left-radius: 4px; |
89 |
| - border-bottom-left-radius: 4px; |
90 |
| -} |
91 |
| - |
92 |
| -.message-action-buttons button:last-child { |
93 |
| - border-top-right-radius: 4px; |
94 |
| - border-bottom-right-radius: 4px; |
| 83 | +/* Action buttons in the group */ |
| 84 | +.message-action-buttons button { |
| 85 | + width: 28px; |
| 86 | + height: 28px; |
| 87 | + padding: 0; |
| 88 | + border-radius: 0; /* Remove individual button radius */ |
95 | 89 | }
|
96 | 90 |
|
97 |
| -.message-action-buttons button:hover { |
98 |
| - background-color: var(--jp-layout-color4); |
| 91 | +/* Add subtle separator between buttons */ |
| 92 | +.message-action-buttons button:not(:last-child) { |
| 93 | + border-right: 1px solid var(--jp-border-color1); |
99 | 94 | }
|
100 | 95 |
|
101 |
| -.message:hover .message-action-buttons button { |
102 |
| - opacity: 1 !important; |
| 96 | +/* Remove the individual button radius styles since we're handling it at the container level */ |
| 97 | +.message-action-buttons button:first-child, |
| 98 | +.message-action-buttons button:last-child { |
| 99 | + border-radius: 0; |
103 | 100 | }
|
104 | 101 |
|
| 102 | +/* Standalone edit button */ |
105 | 103 | .message-start-editing-button {
|
106 |
| - position: relative !important; |
107 |
| - bottom: unset !important; |
108 |
| - right: unset !important; |
109 |
| - cursor: pointer; |
110 |
| - opacity: 0; |
111 |
| - transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out; |
112 |
| - background-color: var(--jp-layout-color3); |
113 |
| - border: none; |
| 104 | + position: relative; |
114 | 105 | padding: 4px;
|
115 | 106 | border-radius: 4px;
|
116 |
| - display: flex; |
117 |
| - align-items: center; |
118 |
| - color: var(--jp-content-font-color1) !important; |
119 | 107 | }
|
120 | 108 |
|
| 109 | +/* SVG icon color */ |
| 110 | +.message-action-buttons button svg { |
| 111 | + color: var(--jp-content-font-color1); |
| 112 | +} |
| 113 | + |
| 114 | +/* Hover states */ |
| 115 | +.message-action-buttons button:hover, |
121 | 116 | .message-start-editing-button:hover {
|
122 | 117 | background-color: var(--jp-layout-color4);
|
123 | 118 | }
|
124 | 119 |
|
| 120 | +/* Show buttons on message hover */ |
| 121 | +.message:hover .message-action-buttons button, |
| 122 | +.message:hover .message-start-editing-button { |
| 123 | + opacity: 1; |
| 124 | +} |
| 125 | + |
125 | 126 | .message-edit-buttons {
|
126 | 127 | display: flex;
|
127 | 128 | gap: 8px;
|
|
0 commit comments