Skip to content

Commit

Permalink
fix style for events widget
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Dec 23, 2024
1 parent 9032b03 commit 44b9536
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions src/pages/Events/EventComponent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,18 @@
}
}

.replaybutton {
button.replaybutton {
line-height: 0px;
height: min-content;

button&[class*="oda-btn-default"] {
color: var(--oda-secondary-text-color);
margin-top: 4px;
border: none;
box-shadow: none;
padding-left: 0px;
padding-right: 0px;
color: var(--oda-secondary-text-color);
background: transparent!important;
padding-top: 7px;
border: none;
box-shadow: none;
padding-left: 0px;
padding-right: 0px;
&:hover{
background: transparent!important;
}

[class*="active"] & {
Expand All @@ -96,18 +97,17 @@
}
}

.stopbutton {
button.stopbutton {
color: red!important;
display: none;
line-height: 0px;
height: min-content;

button&[class*="oda-btn-default"] {
border: none;
box-shadow: none;
padding-left: 0px;
padding-right: 0px;
}
background: transparent!important;
border: none;
box-shadow: none;
padding-top: 7px;
padding-left: 0px;
padding-right: 0px;

[class*="active"] & {
display: initial;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Events/EventComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export default function EventComponent({
{data.displayedTime}
</div>
<button
className={`${classes.stopbutton} oda-btn-default`}
className={`${classes.stopbutton}`}
onClick={() => interruptAlert()}
>
<span className="material-symbols-sharp">block</span>
</button>
<button
className={`${classes.replaybutton} oda-btn-default`}
className={`${classes.replaybutton}`}
onClick={() => resendAlert(data)}
>
<span className="material-symbols-sharp">replay</span>
Expand Down

0 comments on commit 44b9536

Please sign in to comment.