logseq-plugin-tabs icon indicating copy to clipboard operation
logseq-plugin-tabs copied to clipboard

How do I hide tab icon

Open stackingflow opened this issue 2 years ago • 6 comments

Its showing 'P' icon on all the tabs, is there any way to hide it or add custom css? I want it to look like the way it is shown on github readme

Please also add an option to change the pin icon to something custom.

Screenshot 2022-05-15 at 4 37 04 PM

stackingflow avatar May 15 '22 11:05 stackingflow

There are three possible values for this icon.

  • P means pages
  • B for blocks
  • if the page has an icon property, it will show that instead. Screen Shot 2022-05-16 at 05 53 51

pengx17 avatar May 15 '22 21:05 pengx17

Is there anyway to hide it?

stackingflow avatar May 16 '22 11:05 stackingflow

Is there anyway to hide it?

Not yet. I guess this is a feature request if you ask.

pengx17 avatar May 17 '22 06:05 pengx17

Sure :) I would love to request for this feature

stackingflow avatar May 17 '22 07:05 stackingflow

Hey very cool, @pengx17 - the ability to do this is included in your fix to #13.

@stackingflow - install the updated Tabs plugin, enable tab style overrides in its settings page, restart Logseq, then add this code to your custom.css:

.text-xs {
  display: none
}

Share & Enjoy!

mkosma avatar Jun 17 '22 23:06 mkosma

Hey very cool, @pengx17 - the ability to do this is included in your fix to #13.

@stackingflow - install the updated Tabs plugin, enable tab style overrides in its settings page, restart Logseq, then add this code to your custom.css:

.text-xs {
  display: none
}

Share & Enjoy!

I am having an issue with this.

My custom.css changes to the tabs works fine, I have styled the border and background with no issues.

However I am having issue with the icon.

I used the same code as above, styling .text-xs

The styling works, however on mouseover and mouseout of the tabs plugin html tag, the original style of the icon quickly reappears then disappears.

I think the js event that fires on mouseover and mouseout re-renders the icon component, perhaps because it's a pseudo element?

Anyone else having any luck styling the icon .text-xs element without mouseover/mouseout glitches?

drawingthesun avatar Aug 22 '22 03:08 drawingthesun