Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.3.4 - 2025-03-28

* 📝 Set the width to the emoji cell of nekochan emoji list

## v0.3.3 - 2025-03-22

* 📝 Add search function to nekochan emoji list(by [List.js](https://listjs.com/))
Expand Down
Binary file modified docs/images/nekochan-search.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion sphinx_nekochan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""sphinx-nekochan emoji extension"""

__version__ = "0.3.3"
__version__ = "0.3.4"

from functools import cache
from importlib import resources
Expand Down Expand Up @@ -191,9 +191,11 @@ def run(self) -> list[nodes.Node]:

return node_list


def create_table_header(self) -> nodes.Node:
"""create table and table header node"""
table = nodes.table()
# table["classes"] += ["colwidths-given"]

tgroup = nodes.tgroup(cols=3)
table += tgroup
Expand All @@ -209,6 +211,8 @@ def create_table_header(self) -> nodes.Node:
row = nodes.row()
thead += row
cell = nodes.entry()
# add class for setting emoji width
cell["classes"].append("width-64px")
row += cell
cell += nodes.Text("Emoji", "Emoji")
cell = nodes.entry()
Expand Down
3 changes: 3 additions & 0 deletions sphinx_nekochan/_static/sphinx_nekochan.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
.nekochan-flip-both {
transform: scale(-1);
}
.width-64px {
width: 64px;
}

/* https://www.cssportal.com/css-tooltip-generator/ */
[data-tooltip] {
Expand Down