Make action buttons show on hover
This commit is contained in:
4 files changed
+13
-10
No files matched your search
@@ -160,7 +160,7 @@ export default function BerryDashChatroom () {
|
|||||||
>
|
>
|
||||||
{messages.map(item => {
|
{messages.map(item => {
|
||||||
return (
|
return (
|
||||||
<div key={item.id} className='sub-box2 flex flex-row gap-1'>
|
<div key={item.id} className='message sub-box2'>
|
||||||
<Image
|
<Image
|
||||||
src={
|
src={
|
||||||
!item.customIcon
|
!item.customIcon
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
.actionbutton {
|
.message {
|
||||||
@apply absolute right-0 w-6 h-6 bg-(--col5) hover:bg-(--col7) rounded-full -mt-1.5 flex justify-center items-center cursor-pointer transition-colors;
|
@apply flex flex-row gap-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message:hover .actionbutton {
|
||||||
|
@apply flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionbutton {
|
||||||
|
@apply absolute right-0 w-6 h-6 bg-(--col5) hover:bg-(--col7) rounded-full -mt-1.5 justify-center items-center cursor-pointer transition-colors hidden;
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import './styles.css'
|
import '../../berry-dash/chatroom/styles.css'
|
||||||
import { BackButton } from '@/components/BackButton'
|
import { BackButton } from '@/components/BackButton'
|
||||||
import { DiscordButton } from '@/components/DiscordButton'
|
import { DiscordButton } from '@/components/DiscordButton'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
@@ -99,7 +99,7 @@ export default function GeometryRaysChatroom () {
|
|||||||
>
|
>
|
||||||
{messages.map((item, i) => {
|
{messages.map((item, i) => {
|
||||||
return (
|
return (
|
||||||
<div key={i} className='sub-box2 flex flex-row gap-1'>
|
<div key={i} className='message sub-box2'>
|
||||||
<div>
|
<div>
|
||||||
<p>{item.username}</p>
|
<p>{item.username}</p>
|
||||||
<p className='w-240 max-w-[calc(100vw-136px)] truncate select-text'>
|
<p className='w-240 max-w-[calc(100vw-136px)] truncate select-text'>
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
@import "tailwindcss";
|
|
||||||
|
|
||||||
.actionbutton {
|
|
||||||
@apply absolute right-0 w-6 h-6 bg-(--col5) hover:bg-(--col7) rounded-full -mt-1.5 flex justify-center items-center cursor-pointer transition-colors;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user