Skip to content

Commit

Permalink
feat: make tag explorer modal adapt to content (#1733)
Browse files Browse the repository at this point in the history
* add tooltip to TagsSelector
  • Loading branch information
dogfrogfog authored Nov 19, 2022
1 parent 342163b commit 7bdd8a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.tagsSelector {
width: auto;
}

.title {
display: inline-block;
text-transform: uppercase;
Expand All @@ -7,6 +11,7 @@
}

.tags {
max-width: 500px;
padding: 0;
list-style: none;
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { Redirect, useLocation } from 'react-router-dom';
import cl from 'classnames';

import { useAppDispatch } from '@webapp/redux/hooks';
import { actions } from '@webapp/redux/reducers/continuous';
Expand Down Expand Up @@ -84,7 +85,11 @@ function TagSelector({
</span>
<ul className={styles.tags}>
{tags.map((tag) => (
<li className={sideTag === tag ? styles.selected : ''} key={tag}>
<li
title={tag}
className={cl({ [styles.selected]: sideTag === tag })}
key={tag}
>
<input
type="button"
onClick={
Expand Down Expand Up @@ -120,6 +125,7 @@ function TagSelector({

return (
<ModalWithToggle
modalClassName={styles.tagsSelector}
isModalOpen={isModalOpen}
setModalOpenStatus={setModalOpenStatus}
customHandleOutsideClick={handleOutsideClick}
Expand Down

0 comments on commit 7bdd8a4

Please sign in to comment.