Cad Block Decoration

0 views
Skip to first unread message

Sara Legath

unread,
Aug 5, 2024, 3:37:58 AM8/5/24
to niubowmaicom
Iam running into problems with the interaction between a node decoration and a custom nodeView. When the node decoration is before the custom nodeview, and is then removed (i.e. replaced with an DecorationSet.empty or a DecorationSet that has no decorations), the entire document rerenders (and the node view is recreated).

In this case, my decoration adds a class to empty paragraphs (a prompt for users) (see github) and my node-view is an iframe (see github). The behaviour means the iframe gets rerendered on selection changes (causing flicking/loading, and other more complicated node views get recreated as well).


I was wondering if a quick look at the decoration code below highlights the problem? Or if maybe this is a bug? Or expected behaviour? I have also tried using the DecorationSet to map/add/remove the decorations. When it gets down to an empty set, that always seems to trigger a full refresh and flicker in the IFrame/custom nodeView.


I would try putting a console.log statement in the NodeView.update method for the iframe and seeing if update is called when that nearby prompt decoration is changed, just to double check whether its the decoration causing an update.


The Adopt-a-Block Program invites residents, businesses, and community groups to adopt a block of the State Street Promenade and decorate it with Halloween decorations. This program is an opportunity for everyone to come together and make our downtown a frightfully festive and fun place to be during the Halloween season.


We welcome all members of the community to participate in this program. It's a fantastic occasion for families, schools, local businesses, and community organizations to get involved and showcase their creativity.


I'm having an issue with text-decoration: underline on two spans that use inline-block. The [problem is only one part of the URL will underline when hovered, the other does not. I need to keep the display property, otherwise text-overflow won't get applied (see: Text-overflow: ellipsis alignment issue)


Today I was playing around in a code block to see if I could make the hyperlinked text semi-bold and for some reason now the underlines are back in all of my hyperlinks that are not in a code block (the hyperlinks in code blocks still look correct with no underline).


I didn't change anything to the CSS and I deleted that code block that I was playing with, but the underlines are still there. If I delete that CSS above, it actually adds a second underline to all the hyperlinks.


The same for me! I did nothing but visit my site and the underlines are back. VERY frustrated as I have tried searching for an answer, so this must be a new issue with the update. I now have a new Site Styles dedicated section that pops up that wasn't there last night and that's the only thing I can think of that must be causing this.


I'm ALSO getting the double underline so you're not alone. There has definitely been changes if this is happening to a few of us.



As for telling you that you shouldn't be using CSS, what a ridiculous thing to say. Especially as they've REMOVED quite a few options in 7.1 that were standard in 7.0 (usually in Brine). Until they make things as customizable as they used to be, we have to use CSS.



Thanks to you and @Anat13 for the solutions.


Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.


a couple months ago, i used custom css to remove the underline effect from all hyperlinks on my entire site--navigation, footer, text, everywhere. for whatever reason, the code i used is no longer working and the underlines are back. i've tried several codes but none seem to work. would appreciate any help with removing the underlines everywhere!


The code works, and the underline under links is removed. However, as soon as the page is refreshed, the line comes back. Everytime I open the CSS editor though, the lines vanish as soon as the editor opens. Here are two pictures. One has the link underline, the other does not. The effects of the code do not appear to be saving when the page is reopened, hence the return of the underline.



Additionally, is it possible to remove the extra space provided by the link underline? It pushes down the main underline further from the words. This is fine for now, but if possible, I'd like to know how to make that not be the case for future reference.


My sister sponged on some white paint (not a lot but, enough to give it some color) and then decoupaged on the front of an old Christmas card on one side. She stood it up and put the hole in the back and then put ribbon around the edges with a bow on top. It's very lovely and a great way to recycle cards from last year.

By Cindy


The picture is a little outdated, as we now have several different unique methods of decorating and we do so for any occasion imaginable. This has been one of our most enjoyable hobbies to work on together and we have met so many wonderful people at our local craft shows in St. Louis.

What I like the best is, no matter how many crafters take on making glass block lights each one becomes a unique, personal creation. I recommend this to anyone (who is the least bit creative) as a wonderful therapy. (09/25/2009)

By StevesTreasures.com


I then tried different alternatives with the lights. For outside light boxes, which I use as luminarias, set upright, I used regular mini sets of 50 that I bought for $.99. I tied the bows around the sides so the lights only show through the front and back. I sprayed both sides with frosted spray from Lowe's, by Rustoleum, a couple of coats and then set them at intervals down the driveway. Very nice effect.For indoor ones, I used LED mini lights that I got from a friend who does that for a living, so it gave me a price break. I used pre-tied bows from Lowe's that were $1.99 each. That sort of offsets the LED lights price. LED's do not get warm and they use 80% less energy. I would look online for these. I also sprayed these with frosted spray. Oh yes, I forgot I bought some opaque glass spray paint in blue and green to spray stenciled phrases like, "Peace on Earth" etc. on the fronts of the frosted glass block, that I used for the luminarias. Very cool effect.

By Gabriella


After reading some of the feedback on this site, I am going to try to do them myself. I have found the the smaller blocks (3x3 inches) make wonderful gifts for the occasional friend or spur of the moment gift need during the holiday season. I also make the blocks using seasonal ribbon for each holiday. They make great Mother's Day gifts, too. A lot of people use them as night lights in children's rooms and bathrooms as well.In one of the questions someone asked about the white coating around the side of some blocks, my husband used a grinder with a wire brush to remove the coating and then sand blast the sides to give the block an etched look. A florist will make you bows if you are having a time with them. Well I didn't mean to write a sonnet, but hope some of my comments help.

By Betty

Removing Paint Off SidesFor those of you who had questions about getting the white paint off of the sides of the glass blocks, just soak the block in warm water for a few minutes and the paint can be easily scraped or rubbed off. I also found that rinsing the block with water after drilling worked well in cleaning the dust out of the block.

By Marcia


I intend to make some indoor ones for gifts as well, and had the idea of using window cling for decoration on it, you can print them out with various pictures/designs on your printer and they should attach nicely to it. The benefit of the window cling would be that the design can be changed for each holiday and the person receiving the gift does not have to store one for each holiday for their deco. Did anyone try that already?

By the way for the dust in them after drilling, try those vacuum attachment for the computers, they attach right to your vacuum and are small enough to get through these kind of holes. (11/08/2007)

By mamutschka


My daughter is getting married and we decided to use the glass blocks for table decorations. The ones that I decorated this Christmas I used rub-on transfers and painted the back of the block with white frost paint. I also used a sealant to keep the rub-on transfers from peeling off. I used sticky adhesive spray to attach the ribbon and lastly added the "Brrr" tin ornament as an accent. I used a 35 count LED Rice light string. I thought that it turned out pretty good. I found the pre-made bows at Michael's, Hobby Lobby and Garden Ridge after Christmas and stocked up for the next year so that I would have plenty. (12/28/2007)

By Lou Ann Livengood


I was curious to see why I should go for diamond and not regular. I'm probably going to be making a glass block this Christmas. I want to exercise the creative muscle. (11/28/2008)

By about diamond drill bits


Also, a neat trick, if you put tape over the spot where you drill the hole it makes it a lot easier and less glass flying around. The tape needs to be thicker than Scotch, but doesn't have to be as thick as duct tape, but that would work. Since I was using a cordless drill it kept the drill from jumping around as well. I didn't have a heat problem with the bit. (11/17/2009)

By Q


Before installing, we identified the location of each stud behind the wall (there were three) and started a couple screws on those marks in the frame to make the frame quick/easy to attach once in place.

3a8082e126
Reply all
Reply to author
Forward
0 new messages